in reply to Re^3: How do I use the map command for this?
in thread How do I use the map command for this?

> A map is a looping statement.

map is a built-in function used as expression, not a statement

you are right that most uses can be transformed, but there are differences in syntax and implementation

as an example, for - like most non-simple statements - doesn't return values.

edit
see also Re: why does Perl eval have a strange terminator?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^4: How do I use the map command for this?