You asked explicitly for an array reference, that's why I showed you this rather uncommon construction.
NB: in Perl you don't need the brackets for a plain list or a "normal" array (i.e. in "list form" @array )!
update
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 ☆☆☆☆ :)
|