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 } }
--

See the Copyright notice on my home node.

Perl training courses