>>>>> "Peter" == Peter Farrar <[EMAIL PROTECTED]> writes:
>> First, please don't use map in a void context for its side effects.
Peter> Uh oh... What side effects? I use map like this all the time! What dread
Peter> is looming in my future?
Replace
EVIL: map { some;block;of;code;that;changes;$_ } @some_array;
with
GOOD: for (@some_array) { some;block;of;code;that;changes;$_ }
or if it's simple enough:
GOOD: some_expression_that_changes($_) for @some_array;
It's even less punctuation, usually.
--
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]