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

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

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
November 20, 2000 18:11
Subject:
Re: IDEA: more for-like map and grep?
Message ID:
20001120201052.A21541@chaos.wustl.edu
On Mon, Nov 20, 2000 at 09:03:30PM -0500, Jeff Pinyan wrote:
> On Nov 20, Jarkko Hietaniemi said:
> 
> >	for (@a) { ... $_  ... }
> >	for $a (@a) { ... $a  ... }
> >	for my $b (@a) { ... $b  ... }
> 
> I find it irksome that you must use $_ in a post-expression for modifier:
> 
>   print "gotta use \$_\n" for @list;

I find it irksome that

	for ( ... ) { ... } if ...;

> -- 
> Jeff "japhy" Pinyan     japhy@pobox.com     http://www.pobox.com/~japhy/
> PerlMonth - An Online Perl Magazine            http://www.perlmonth.com/
> The Perl Archive - Articles, Forums, etc.    http://www.perlarchive.com/
> CPAN - #1 Perl Resource  (my id:  PINYAN)        http://search.cpan.org/

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next


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