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
In reply to Re: Survey file parsing
by johngg
in thread Survey file parsing
by YYCseismic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |