http://www.perlmonks.org?node_id=997841


in reply to Re^2: How to call a function on each item after a split?
in thread How to call a function on each item after a split?

Why is it better to use the map?
  • Comment on Re^3: How to call a function on each item after a split?

Replies are listed 'Best First'.
Re^4: How to call a function on each item after a split?
by nemesdani (Friar) on Oct 08, 2012 at 18:07 UTC
    Map is shorter, but just as clear. Result is a list -> can be fed directly to another function.

    Just a matter of taste and choice really. TIMTOWTDI after all.

    I'm too lazy to be proud of being impatient.