In the typical case of a line-by-line file, where the record "starts with" (or, "ends with") H00 or what-have-you, then I would suggest using the appropriate anchor characters: a caret "^" anchors the pattern to the beginning of the line; a dollar-sign "$" anchors to the end of the line.
^ and $ anchor to the beginning and end of the string, not line, unless the /m modifier is in effect (perlre). Even if you meant by "a line-by-line file" a file that is read one line at a time, your statement that they anchor to the ends of the line is potentially misleading.
| [reply] [d/l] [select] |