my @foo = qw (one two three four five six seven eight nine ten); while ($c <$#foo){ ($s,$a)= @foo[$c++ .. ++$c+1]; print "$s $a\n"; }
In reply to Re: Traversing succeding sets of an array
by boo_radley
in thread Traversing succeding sets of an array
by very empty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |