Re: RFC 120 (v2) Implicit counter in for statements, possibly $#.
[email protected] (Peter Scott) Sun, 20 Aug 2000 09:24:19 -0700
| Newsgroups | perl.perl6.language.flow |
|---|---|
| Message-ID | <[email protected]> |
At 08:19 AM 8/20/00 +0100, Graham Barr wrote:
>Yes. I thought someone else would have done an RFC for this by
>now, but I was going to propose that a for loop can
>have any number of variables
>
> for my($a,$b,$c) (@array) { ... }
>
>steps three at a time,
>
> for my($key,$val) = (%hash) { ... }
I would so love to have this.
--
Peter Scott
Pacific Systems Design Technologies