local $/ = "A\nB\n"; chomp, print while <>;
Just make sure your files end in a newline, otherwise the last "A\nB" at the EOF won't be removed.
In reply to Re: file alteration
by choroba
in thread file alteration
by artperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |