in reply to Re^3: slicing array based on values but not index
in thread slicing array based on values but not index

@ Bloodnok:

Thank you very much, :).

  • Comment on Re^4: slicing array based on values but not index

Replies are listed 'Best First'.
Re^5: slicing array based on values but not index
by ikegami (Patriarch) on Aug 13, 2009 at 22:37 UTC

    It can also be written as:

    push @{ $res{$_->[2]} }, $_ for @arr;

    Some people are finicky about map in void context.

      TFT ikegami ,

      I keep forgetting the for idiom you suggest - I really should remember to use map when and only when, modifying (elements of) the input list...

      A user level that continues to overstate my experience :-))