[Omaha.pm] my $a = blah();

Jay Hannah jhannah at omnihotels.com
Tue Apr 4 18:43:29 PDT 2006


Wow. On a quiz I would have said that this would print "7". Not "8"... I
was sure the 8 would have been silenty ignored.

j


$ cat j.pl
my $a = blah();
print "$a\n";

sub blah {
   return (7,8);
}

$ perl j.pl
8



More information about the Omaha-pm mailing list