Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: rename issues

by sunadmn (Curate)
on Nov 29, 2004 at 18:08 UTC ( [id://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

Replies are listed 'Best First'.
Re^5: rename issues
by ikegami (Patriarch) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://410985]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 06:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found