Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^5: rename issues

by ikegami (Pope)
on Nov 29, 2004 at 18:11 UTC ( #410986=note: print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
Re^6: rename issues
by sunadmn (Curate) on Nov 29, 2004 at 18:13 UTC
    This is going to sound stupid but hwere exactly should I place the unlink at??

    SUNADMN
    USE PERL
      Right after the closes
        Ok so we have that done, but there is still an issue here as I can't open the $old_file to read as the rename is ran first, so with that said should I rework the code to rename after the files have been modified?

        SUNADMN
        USE PERL

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2020-07-08 02:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?