Top 10 perl books
johanl at DarSerMan.com
Thu Apr 24 00:59:42 BST 2008
At 21:55 2008-04-23, Abigail wrote:
> > foreach iterates over a list, map transforms a list.
>Wrong. Map leaves the list as is - although it's able to alter its elements
>because of the aliasing behaviour of $_ - but for has that ability as well.
Certainly. Clearly my once sentence wasn't unambigous enough. map
transform a list into another list. (And while you can side effect
things while doing so, it's not a very good idea. Well, that goes for
variables in general.)
More information about the london.pm