On Fri, Jun 29, 2001 at 02:58:20PM -0400, Jeff 'japhy' Pinyan wrote:
> No there is not. Either do:
>
> my $i = 0;
> for (@foo) {
> # ...
> }
> continue { $i++ }
>
> or do:
>
> for my $i (0 .. $#foo) {
> my $element = $foo[$i];
> # ...
> }
or
for (my $i = 0; $i < @foo; $i++) {
...
}
for (;;) isn't a bad word. :)
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--
- loop counting Bob Mangold
- Re: loop counting Jeff 'japhy' Pinyan
- Re[OT]loop counting Michael Fowler
- Re[OT]loop counting Paul
- Re: loop counting Brett W. McCoy
- Re: loop counting Paul
- Re: loop counting Bob Mangold
- Re[OT]loop counting Paul
- RE: loop counting Kipp, James
