develooper Front page | perl.perl5.porters | Postings from November 2000

Re: IDEA: more for-like map and grep?

Thread Previous
From:
Simon Cozens
Date:
November 20, 2000 17:17
Subject:
Re: IDEA: more for-like map and grep?
Message ID:
20001121011729.A28507@pembro4.pmb.ox.ac.uk
On Mon, Nov 20, 2000 at 07:10:10PM -0600, Jarkko Hietaniemi wrote:
> While doodling with an Eternity Project (TM) of mine it came to me that
> it would be nice to be able to alias also other variables than the usual
> $_ when using map() and grep(), like we can in for(each). 

Why don't we go the whole hog and combine the foreach iter and the mapwhile
iter? They do *more or less* the same thing, right?

-- 
Sendmail may be safely run set-user-id to root.
		-- Eric Allman, "Sendmail Installation Guide"

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About