in reply to Extracting Multiline Records from a file
Isn't that exactly what $/ is for?
{ local $/ = "________________________________\n"; while (<LOGFILE>) { # do stuff with a single record } } [download]
See the Copyright notice on my home node.
Perl training courses