in reply to List Comprehensions

 [ map { $_->my_method() } @my_list ] should¹ do.

> I already found List::Comprehensions

ugh ...

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)

update

¹) yep :)

DB<8> [ map { 10-$_ } 1..10 ] => [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]

Replies are listed 'Best First'.
Re^2: List Comprehensions
by tobbo (Novice) on Oct 16, 2014 at 20:50 UTC
    Works like a charm, thanks!
      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 ☆☆☆☆ :)