I am trying to create something like the following, which will loop through an array and simultaneously remove the first value from the array each time:
@array = (1,2,3,4,5,6);
foreach $value (@array)
{
shift(@array); ## used elsewhere
print "$value";
}
My problem is that the...