for my $ix ( 0 .. ( $#somewords -1 ) ) { print "$somewords[$ix]\n" } for my $chops ( @somewords[ 0 .. ( $#somewords -1 ) ) { print "$chops\n" }
In reply to Re: foreach only for a section of a list
by Anonymous Monk
in thread foreach only for a section of a list
by dizou
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |