in reply to Search and replace in html
Sounds like you could want to set the input record separator ('$/') to undef, then you'll pull the file in one huge chunk rather than line-by-line.
Try either of the following lines:
undef $/; local $/;
The first line will set '$/' to undef for the rest of the file, the second only for the enclosing scope (arguably better).
You might want to try reading perlvar to get a better idea what '$/' is, and maybe pick a better value to set it to.
|
---|
In Section
Seekers of Perl Wisdom