Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Not able Create Backup file when using INPLACE_EDIT ( $^I )

by Hue-Bond (Priest)
on May 02, 2006 at 04:24 UTC ( #546812=note: print w/replies, xml ) Need Help??

in reply to Not able Create Backup file when using INPLACE_EDIT ( $^I )

Can't rename /home/antony/perl/ to /home/antony/perl/l.plsub/.bak: No such file or directory

If you pay attention to the error message, you'll see that the value of $^I is being appended to the file currently being edited. Yes, you can have a subdir where to save the backups (in this case, it would be named l.plsub but then you would need one directory per backup. Not much different from having the backup in the same directory as the file itself.

David Serrano

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2023-12-08 19:56 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (37 votes). Check out past polls.