in reply to How do I re-read a line?

I admit I didn't test this, but wouldn't
next if /^\d-RECORD$/;
work in this particular case? Actually, if you also did
next if /^$/;
it would seem that you wouldn't need the external check for /^\d-RECORDS$/. This is all based on the code I can see, of course, you may have other reasons for wanting to process each record separately, with one sub call each? Otherwise, I'd restructure my logic a bit.

Update: to see what I mean, listen to the not-as-lazy-as-me Mr. Muskrat. :)

Hope that helps. :)


You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.