Jerusalem Perl Mongers Contest

From JmPm

Revision as of 08:23, 12 July 2007 by Rina (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1. wantarray

a returns the value of an array, comma separated
b returns true if subroutine is looking for a list
c creates a new array
d creates an array from a list


2. who wrote CGI.pm

a Max Stein
b Abraham Stein
c Lincoln Stein
d Abraham Lincoln


3. what does this print out

$x=’y’;
$y=’x’;
$$y=’z’;
print $x;


a    (nothing)
b x
c y
d z

4. what does this code do

a changes a Mac file to a Windows file
b prints Jerusalem Perl Monger
c prints Just Another Perl Hacker
d doesn’t compile
Personal tools