On Sun, Nov 24, 2002 at 01:09:26PM -0500, George Schlossnagle wrote:

> It's also worth noting that it can modify your original array in place

True, but I think this is more suited to C<for>.

> @a = ('bob','jane');
> map {$_ = ucfirst($_)} @a;

  $_ = ucfirst for @a;

> This can be useful (or painful if you forget about it).

It can also be expensive, if you are using an older version of Perl, and
could cause people to wonder why you are using C<map>.

map in void context - just say "no" ;-)

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to