If your goal is to remove the header from the file, the easiest approach is to copy from the original file to a new file, leaving out the header lines in the process.open FILE, "<file.txt" or die "Couldn't open file.txt: $!"; while (<FILE>) { if (/^#/) { # ignore the header } else { # Do some processing } }
-Mark
In reply to Re: Extracting Header
by kvale
in thread Extracting Header
by raj8
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |