in reply to Skipping the first 4 lines of a file:: Is there a better way?
... my $skip = 4; { open FH, "filename"; local@_ = <FH>; close FH; @_ = split /(?:.+\n){$skip}/m, "@_"; for( @_ ){ # work without first four lines } } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Skipping the first 4 lines of a file:: Is there a better way?
by Fletch (Bishop) on Jun 03, 2005 at 14:22 UTC | |
| |
|
Re^2: Skipping the first 4 lines of a file:: Is there a better way?
by fishbot_v2 (Chaplain) on Jun 03, 2005 at 15:02 UTC |