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

Re^2: search and replace

by Kenosis (Priest)
on Feb 02, 2014 at 20:11 UTC ( [id://1073081]=note: print w/replies, xml ) Need Help??


in reply to Re: search and replace
in thread search and replace

Contact info: nnn-555-2013

s/2013/2014/g

Why is their phone not working???!

Replies are listed 'Best First'.
Re^3: search and replace
by Anonymous Monk on Feb 02, 2014 at 20:16 UTC
    Hey, don't criticise my code. It matches the spec.

      I tried calling the number to apologize, but it still doesn't work...

        Have you tried a fax machine? Phone numbers ending in 2014 usually have a fax machine hooked up.
Re^3: search and replace
by Laurent_R (Canon) on Feb 02, 2014 at 23:01 UTC
    Very interesting point. Upvoted. But, at the same time, the Anonymous Monk's proposal did fit perfectly the OP's requirement: "a perl script that will find all instances of 2013 on a website and change it to 2014".

      Agree that the OP's specs were met by s/2013/2014/g; the posting was just a way of wondering out loud whether the OP had considered potential collateral damage.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found