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


in reply to Re: When would you choose foreach instead of map?
in thread When would you choose foreach instead of map?

There are those perl programmers who try to do as much with as little as possible and then are those of us who like the code to be as readable and mutable as possible.

I repeat an earlier statement of mine, that not understanding that part of the language does not make it less useful, effective, or in this case, readable. I use map when it is the right choice, and my code is both readable and debuggable.

--rjray

  • Comment on Re: Re: When would you choose foreach instead of map?