in reply to Re: Cannot skip first lines in arrayin thread Cannot skip first lines in array
because it will only work in the context of a: while(<FILEHANDLE>)
or, of course:
{ local $. = 0; for (@array) { if ( 0..9 ) {} .... } $.++; } [download]