Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Debug and workaround help

by Animator (Hermit)
on Jun 28, 2005 at 10:14 UTC ( [id://470557]=note: print w/replies, xml ) Need Help??


in reply to Debug and workaround help

Can you please explain what output you want?

My guess is that you want to replace <Buisnessnames ...> with <Bnames ...> in which case $' is incorrect.

You could consider using $&, but that IMHO is yet another idea.. Why don't you do one big replace? Why care about extracting the thing via a match and then using it in a subtitution?

What would be wrong with: s/<BusinessNames (.*?)>/$strRepl/mi; ?

Also note that you don't need the quotes in print "$string"; I would even suggest dropping them since it makes it a little bit less readable (or atleast to me)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found