you're calling map on a list, not on an arrayref.

wrong:

>    return [ (1, 2)->map->(sub { $_ + 1  }) ];

right:

  return [ 1, 2 ]->map->(sub { $_ + 1 });

hdp.

Reply via email to