in reply to Re: List Comprehensions
in thread List Comprehensions

Works like a charm, thanks!

Replies are listed 'Best First'.
Re^3: List Comprehensions
by LanX (Saint) on Oct 16, 2014 at 22:15 UTC
    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 ☆☆☆☆ :)