to avoid the possiblity of the off-by-one mistake in the first place. ;-)for my $n (0..$#a) { ... }
Update: or for (@a) as larsen notes below....
-Blake
In reply to Re: Re: sprintf and for loop weirds???
by blakem
in thread sprintf and for loop weirds???
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |