in reply to Re: Not understanding 2 sentences in perldoc
in thread Not understanding 2 sentences in perldoc
But he asked for lists, so
my @x = f(); my @y = @x;
can be written as
my @y = my @x = f();
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
DB<39> sub f { 1..3} DB<40> my @y = my @x = f(); print"@x,@y" 1 2 3,1 2 3 DB<41>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Not understanding 2 sentences in perldoc
by ikegami (Patriarch) on Jul 30, 2020 at 22:46 UTC |