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 ☆☆☆☆ :)
In reply to Re^3: List Comprehensions
by LanX
in thread List Comprehensions
by tobbo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |