develooper Front page | perl.perl5.porters | Postings from February 2009

Re: [perl #63220] for and foreach not entirely synonymous

Thread Previous
From:
Rafael Garcia-Suarez
Date:
February 14, 2009 01:07
Subject:
Re: [perl #63220] for and foreach not entirely synonymous
Message ID:
b77c1dce0902140106rc1ed71ag581d67ae95f3d36d@mail.gmail.com
2009/2/13 via RT Ben Tilly <perlbug-followup@perl.org>:
>
> Both for and foreach are supposed to be synonyms.  But there is a small
> difference - you can use foreach as an attribute but not for.

Fixed there :
http://perl5.git.perl.org/perl.git/commitdiff/11baf631abf5da1e2bdc887ea9586fd365c82fce
but probably not as you'd expect : all control statements except
foreach were not useable as attribute names. Clearly foreach was
missing...

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