in reply to What's happening in this expression?
perl -e 'sub foo {return (1,2,3,4)}; my $a, $x, $y, $z = foo(); print +qq{$a, $x, $y, $z\n}' , , , 4
perl -e 'sub foo {return (1,2,3,4)}; my ($a, $x, $y, $z) = foo(); prin +t qq{$a, $x, $y, $z\n}' 1, 2, 3, 4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What's happening in this expression?
by haukex (Archbishop) on Oct 11, 2020 at 10:17 UTC | |
by LanX (Saint) on Oct 12, 2020 at 19:13 UTC |