in reply to Re^2: List Comprehensions
in thread List Comprehensions
NB: in Perl you don't need the brackets for a plain list or a "normal" array (i.e. in "list form" @array )!
in > 90% of all cases something like
my @output = map { $_->meth } @input
is preferred and as soon as you really need a reference you'll use \@output
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
|
|---|