in reply to Survey file parsing
while ( <IN> ) { chomp; if ( substr( $_, 17, 1 ) eq ':' or /^ </ ) { # we are in the header } else { # now we are in the data } }
might work for you.
Cheers,
JohnGG
Update: Whoops, noticed that the column header lines actually start with ' <', corrected above
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Survey file parsing
by YYCseismic (Beadle) on Jun 27, 2008 at 19:42 UTC | |
|
Re^2: Survey file parsing
by YYCseismic (Beadle) on Jun 27, 2008 at 22:06 UTC |