Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^8: rename issues

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

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

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?


Replies are listed 'Best First'.
Re^9: rename issues
by ikegami (Pope) on Nov 29, 2004 at 18:29 UTC

    The code starts with example_user_menu.htm and ends with only pnDiagram_user_main.htm. Isn't that what you want? No rename. No need for rename.

      That is correct so I have taken out the rename, but this creates two sets of file one set with the old name and one set that is modified with the new name and modified text. the end result I want is to have the files renamed than open those files and do the switch inside them and not have the old file there at all. I think I am confusing myself here maybe I need to do another subroutine what do you think??

      USE PERL
        this creates two sets of file one set with the old name

        uh, no, unless unlink failed for some reason??? unlink deletes. How can you be left with something you've deleted?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://410990]
[Corion]: Hmmm - Mano Negra or at least Manu Chao seem to put on a good live show. At least the one live CD I have from Manu Chao sounds good ;)
Discipulus feels the same jealousity of the johngg's daughter
[1nickt]: choroba I agree
[choroba]: Playing in a punk rock band for 20 years... my hearing is quite bad
[Corion]: I still have hopes to turn my godson and his two siblings into a punk band ;)
[Corion]: Their older sister just started piano but has been interested in drumming, which she should be able to start with 8 years or so)
[Discipulus]: ah was Kink of Bongo 1992..
[1nickt]: choroba name of band? youtube link? MySpace link?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2017-03-24 12:21 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (301 votes). Check out past polls.