How about something like this?
foreach $a (0..@data-1) { print or do something ; } ## end of foreach
If you have the length of the array it knows then when to stop.
In reply to Re^2: While Loops
by tbone654
in thread While Loops
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |