At the start of the code (not given here) I have a variable containing the first line in the file: $b = $file[0] and then the foreach loop. How can I make it so that once that first line is read and given to the variable, it is no longer read... as it interferes with my loop at the momentopen (FILE, shift); my @file = <FILE>; foreach $a (@file) { ...etc... } close (FILE);
In reply to Read and skip a line by DaveMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |