Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: rename issues

by sunadmn (Curate)
on Nov 29, 2004 at 18:08 UTC ( #410985=note: print w/ replies, xml ) Need Help??


in reply to Re^3: rename issues
in thread rename issues

Ok so the only thing I am missing here is that I do no want to make a backup of the old file all I want to do is rename the old to the new then open the new for writing and make the switches in the new file.

SUNADMN
USE PERL


Comment on Re^4: rename issues
Re^5: rename issues
by ikegami (Pope) on Nov 29, 2004 at 18:11 UTC
    You don't want to keep the old file? Add unlink($old_file_name); at the end. You can't read from and write to the same file at the same time, so you have to do it at the end.
      This is going to sound stupid but hwere exactly should I place the unlink at??

      SUNADMN
      USE PERL
        Right after the closes

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2014-10-20 23:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (92 votes), past polls