Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Can't rename

by nimdokk (Vicar)
on Mar 18, 2004 at 10:51 UTC ( #337656=note: print w/replies, xml ) Need Help??

in reply to Can't rename

In addition to the suggestion about setting $a and $b to the full path to the file, you might also want to make sure that $ENV{DOCUMENT_ROOT} is really being set to what you are expecting it to be. Perhaps adding use strict or use warnings?

update: I just got into work and skimmed my Perl book. From the docs, "rename will not (usually) work across filesystem boundaries, although on a Unix system, the mv command can sometimes be used to compensate for this." It goes on to add: "See the standard File::Copy module for cross-filesystem renames."

"Ex Libris un Peut de Tout"

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2021-04-13 16:02 GMT
Find Nodes?
    Voting Booth?

    No recent polls found