in reply to skip lines
Use a flag:
HTH, Ratamy $parameterFound = 0; # the fla +g while( my $line = <@data> ) # your code that claims to read th +e file line-by-line { if ($line =~ /Parameter/) { $parameterFound = 1 ;} # start readi +ng real data now next if ($parameterFound == 0); # we are stil +l in the header print .... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: skip lines
by halligalli (Novice) on Jul 20, 2010 at 14:43 UTC |