Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Search and replace query

by moritz (Cardinal)
on Aug 26, 2011 at 10:08 UTC ( #922560=note: print w/replies, xml ) Need Help??


in reply to Search and replace query

You need to search for <bindname>abcde<\/bindname>, and if it appears in the current line, store that information in a variable.

then if you do the substitution, check first if that variable is set.

And to remember to reset that variable in an appropriate place

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2019-11-17 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (85 votes). Check out past polls.

    Notices?