Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: search and replace with a temp file at a certain substr position

by jdporter (Paladin)
on Jul 20, 2005 at 20:21 UTC ( [id://476606]=note: print w/replies, xml ) Need Help??


in reply to search and replace with a temp file at a certain substr position

It sounds like you may have some other issues, but one thing you should definitely be aware of is that s/// does not return the modified string! So instead of
print NEW s/$ns/"blah"/;
you should do
s/$ns/"blah"/; print NEW $_;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-23 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found