... my $skip = 4; { open FH, "filename"; local@_ = <FH>; close FH; @_ = split /(?:.+\n){$skip}/m, "@_"; for( @_ ){ # work without first four lines } } ...
In reply to Re: Skipping the first 4 lines of a file:: Is there a better way?
by sh1tn
in thread Skipping the first 4 lines of a file:: Is there a better way?
by PerlBear
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |