Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: find and replace

by Zaxo (Archbishop)
on Dec 21, 2007 at 07:55 UTC ( #658408=note: print w/ replies, xml ) Need Help??


in reply to find and replace

If you're reading that line by line, you can't easily back up to make the replacement.

If you slurp the input, you need to save multiple matches for "affiliation" tags in a data structure and make another pass.

If your input is valid XML, then one of the XML modules may be the best approach.

After Compline,
Zaxo


Comment on Re: find and replace

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2015-07-05 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls