{cough} you could always use the obvious approach with a C style loop
@ary = qw( a b c d e f g h i ); for ( my $i=0; $i<@ary; $i=$i+2 ) { print "$ary[$i] - $ary[$i+1]\n"; }
In reply to Re: How do I loop through a list two or more elements at a time?
by tachyon
in thread How do I loop through a list two or more elements at a time?
by moodster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |