Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Search and replace in html

by kilinrax (Deacon)
on May 08, 2003 at 23:32 UTC ( #256710=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://256710]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2022-01-16 18:32 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (49 votes). Check out past polls.