ntributing parties to confirm that their suggestions have
been fairly represented.
Look out for RFC 1357: "Refract: A meta RFC language". Anyone who cares to
debate the usefulness of a RFC definition language within Perl can meet me
in the ICA bar at YAPC::Europe.
John McNamara.
=h
with other proposals.
> > 3. Explicit counter in the body of the for/each loop: a clean
> > solution but requires a new or reused function.
>
>What happened to explicit variable(s) *after* the list?
>
> for (@array) $index { ... }
Forgot it. :) I'l
unter in the body of the for/each loop: a clean
solution but requires a new or reused function.
If you really wish to split part of this out into a separate RFC it would
be best to wait until this one is more finalised.
John McNamara
--
"The Mosaic code has r
There have been several good suggestions. We'll leave the discussion run
for another few days and then I'll try to summarise the main points in a
single post.
John
--
"The Mosaic code has replaced the law of the jungle."
James Joyce - Ulysses
On Wed, Aug 16, 2000 at 11:42:20AM -1000, Tim Jenness wrote:
> What about:
>
> for (0..$#array) {
> print $array[$i], " is at index ", $i, "\n";
> }
>
> I use that whenever I need to loop over indices of two arrays at once.
I use it myself ;)
Iterating over an array in terms of the arra