in reply to Re: Need to skip two lines
in thread Need to skip two lines
while(<SOURCE>) { my $source = $_; #skip blank lines next if ($source =~ m/^(\s)*$/); if (substr($source,145,16) =~ /Page: 1/) { $page1 = 1; next; } if (substr($source,76,11) =~ /Run Listing/) { $reporttype = 1; next; } if (substr($source,72,9) =~ /Sorter: 2/) { $sorter2 = 1; if ($page1 == 1 and $reporttype == 1 and $sorter2 == 1){ ++$dcount; print substr($source,83,20) . "\n"; $page1 = 0; $reporttype = 0; $sorter2 = 0; next; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need to skip two lines
by linuxer (Curate) on May 08, 2009 at 18:48 UTC |