perl -e '@set=qw(a b c d);for (@set[0..$#set - 1]){print "$_\n";}' a b c [download]
In reply to Re: foreach only for a section of a list by Utilitarian in thread foreach only for a section of a list by dizou