Isn't that exactly what $/ is for?
{ local $/ = "________________________________\n"; while (<LOGFILE>) { # do stuff with a single record } }
In reply to Re: Extracting Multiline Records from a file
by davorg
in thread Extracting Multiline Records from a file
by DeliriumNZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |