>>>>> ""Dan" == "Dan Sopher" <[EMAIL PROTECTED]> writes:

"Dan> Aside from the syntax, is there a difference in the way 'map' and
"Dan> 'foreach' process?

Yes.  map is an expression.  foreach is a statement.  foreach can't
be nested inside a larger expression.  map is *meant* to do that,
and using it in a void context is generally frowned upon.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to