Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: user input Regular Expression -- oneliner

by eyepopslikeamosquito (Archbishop)
on Dec 14, 2020 at 03:18 UTC ( [id://11125147]=note: print w/replies, xml ) Need Help??


in reply to Re: user input Regular Expression -- oneliner
in thread user input Regular Expression

Generally is a bad idea to do an inplace edit without backup. For this reason Perl -i commandline switch always ask for a backup file extension.

Yes! This has long been a pet peeve of mine (as indicated in Re-runnably editing a file in place and Perl Best Practices book: is this one a best practice or a dodgy practice?).

BTW, I was delighted to see the most excellent File::Replace by haukex appear on the CPAN (which I see he used in his reply to the root node).

  • Comment on Re^2: user input Regular Expression -- oneliner

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 20:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found