Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by Hue-Bond (Priest)
on May 02, 2006 at 04:24 UTC ( [id://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/l.pl 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-19 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found