if (/^H/ or /^ /) {
Alternately you could look for the "key : value" format that all the header lines seem to have:
if (/^[^:]+\s+: \S+/) {
But you'll have to be sure that your data lines can never match that format.
-sam
In reply to Re: Survey file parsing
by samtregar
in thread Survey file parsing
by YYCseismic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |