for my $i (0..$#elements-1) { do_something_with($elements[$i],$elements[$i+1]); }
In reply to Re: Traversing succeding sets of an array
by thelenm
in thread Traversing succeding sets of an array
by very empty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |