Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Search and Replace

by liz (Monsignor)
on Aug 27, 2003 at 09:17 UTC ( [id://286990]=note: print w/replies, xml ) Need Help??


in reply to Search and Replace

If you stick in a:
<?xml version="1.0" encoding="iso-8859-1"?>
you'll find that this actually is valid XML. Which means you could go for an XML type solution, either DOM or stream based.

Or you could read the whole file in memory and do regular expressions.

Judging from what you've given us, there is no "best" way. There's just TIMTOWTDI.

Hope this helps.

Liz

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found