New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re: foreach my Dog $spot (...) {...} #566
Comments
From The RT System itselfNOTE: I'm not saying this should be implemented in perl5.006, so TomC you Two forms: for my(a, b, c) (a1, b1, c1, a2, b2, c2, ...) { and: for my(a, b, c) (a1, a2, ...) (b1, b2, ...) (c1, c2, ...) { They are actually unambiguous... :-) As a simplification: for my(a) (a1, a2, ...) { Is just a simplification of both of the above... :-) mark -- One ring to rule them all, one ring to find them, one ring to bring them all http://mark.mielke.cc/ |
From The RT System itselfHow does the extension go? for my(Dog $dog, Cat $cat) (@list_of_alternating_dog_cats) { mark (who has only wished for such a syntax once every 3 months or less) -- One ring to rule them all, one ring to find them, one ring to bring them all http://mark.mielke.cc/ |
From The RT System itselfI don't like that one as much - the most common use I have for this foreach my ($key,$value) (%hash)
|
From The RT System itselfOn Thu, 16 Sep 1999, Mark Mielke wrote:
for my(Dog $dog, Cat $cat) (@list_of_dogs) (@list_of_cats) { Tuomas |
From The RT System itselfI find myself having to do: sub new { bless [] } my Class $this = Class->new; foreach ($this, $that) { foreach my Class $obj ($this, $that) { would be much simpler. Alas, -- Michael G Schwern schwern@pobox.com |
@iabyn - Status changed from 'stalled' to 'resolved' |
@iabyn - Status changed from 'stalled' to 'resolved' |
3 similar comments
@iabyn - Status changed from 'stalled' to 'resolved' |
@iabyn - Status changed from 'stalled' to 'resolved' |
@iabyn - Status changed from 'stalled' to 'resolved' |
Migrated from rt.perl.org#1418 (status was 'resolved')
Searchable as RT1418$
The text was updated successfully, but these errors were encountered: