Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Moving Files
by stephen (Priest) on Apr 09, 2002 at 23:16 UTC
Re: Moving Files
by thelenm (Vicar) on Apr 09, 2002 at 23:17 UTC
Re: Moving Files
by lshatzer (Friar) on Apr 09, 2002 at 23:17 UTC
Re: Moving Files
by ehdonhon (Curate) on Apr 09, 2002 at 23:18 UTC

    rename is the perl directive to use, but it does not work across file systems, so I usually do something like this:

    rename( $source, $dest ) or system( "/bin/mv", $source, $dest ) and die ( "Move from $source to $dest failed - $!" );