in reply to lc entire contents of array?

This is where map comes in handy.
@array = map { lc } @array;

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

Replies are listed 'Best First'.
Re: Re: lc entire contents of array?
by Anomynous Monk (Scribe) on Mar 30, 2004 at 19:28 UTC
    Maybe it's just me, but I hardly ever use the map BLOCK form; it just doesn't read as well for me as
    @array = map lc, @array