Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Search and replace in htmlby kilinrax (Deacon) |
on May 08, 2003 at 23:32 UTC ( [id://256710]=note: print w/replies, xml ) | Need Help?? |
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:
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
|
|