Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: can't get $& to remove value in a substitution

by CubicSpline (Friar)
on Oct 24, 2002 at 12:39 UTC ( [id://207678]=note: print w/replies, xml ) Need Help??


in reply to can't get $& to remove value in a substitution

I don't really see a problem with the code. In fact, copying your code to my machine and running it seems to give the result you are looking for.

Output:

match: before ..... <textarea class="FolderTxtArea" name="blah"><%=foo +::doSomething%></textarea> varmatch: <%=foo::doSomething%> match: after .... <textarea class="FolderTxtArea" name="blah"></texta +rea> match: after testinsert .... <testinsert<%=foo::doSomething%> class=" +FolderTxtArea" name="blah"></testinsert<%=foo::doSomething%>>

I did notice that the output you're giving in your question doesn't match the order in which the print statements appear in the code. Perhaps you're looking at old output?

~CubicSpline
"No one tosses a Dwarf!"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found