in reply to Parsing/regex question
my $lines_to_skip = 0; LINE: while (<MSOUT>) { if (0 < $lines_to_skip) { $lines_to_skip --; next LINE; } ... if ($line =~ /^(Position|Spot|Mark) has rolled into$/)) { $lines_to_skip = 1; next LINE; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing/regex question
by vxp (Pilgrim) on Jul 06, 2009 at 18:43 UTC | |
by ikegami (Patriarch) on Jul 06, 2009 at 19:21 UTC | |
by superfrink (Curate) on Jul 06, 2009 at 19:03 UTC |