in reply to skip lines
Something along these lines, maybe?
# three-argument form of open() is safer open(my $input, '<', $filename ) || die "can't open $filename \n" ; my $in_header = 1; while (<$input>) { if (/Parameter/) { $in_header = 0; next; } next if $in_header; print $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: skip lines
by halligalli (Novice) on Jul 20, 2010 at 14:15 UTC | |
by moritz (Cardinal) on Jul 20, 2010 at 14:18 UTC | |
by halligalli (Novice) on Jul 20, 2010 at 14:31 UTC | |
by moritz (Cardinal) on Jul 20, 2010 at 18:04 UTC | |
by chromatic (Archbishop) on Jul 20, 2010 at 21:22 UTC |