in reply to When should I use map, for?

Is this fair? Why do you include a || 1 in the map versions, but not the for version?

-Bryan

Replies are listed 'Best First'.
Re^2: When should I use map, for?
by Transient (Hermit) on May 19, 2005 at 20:23 UTC
    Since map returns the value in the BLOCK, there would be differing results if the OP didn't do this.

    Although, to be completely fair, you could do:
    s/0/./g; $_;

      Thanks for the clarification!

      -Bryan