in reply to Re^3: my (0?$a:$b): a koan
in thread my (0?$a:$b): a koan
EDIT: As seen with this:my $a if 0; my $b = 3;
$a=1; $b=2; sub x { my (0?$a:$b) = shift; print"a=$a\nb=$b\n"; $a=shift } x(3,30); x(4,40); __END__ # OUTPUT: a= b=3 a=30 b=4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: my (0?$a:$b): a koan
by wind (Priest) on May 04, 2011 at 21:24 UTC |