in reply to Re^3: array processing
in thread array processing

I must be doing something else wrong because it still doesn't work.
I changed the line to
next unless ($linenum < $lastline);
because I want to process everything after the lastline. I still end up with linenum being set to 1 after the while loop has processed ?