in reply to Re: Unix command working with Perl
in thread Unix command working with Perl
Moving files across filesystem boundaries? It doesn't work with rename.
I always use File::Copy instead of rename for this reason.
use File::Copy; move('/old/path', '/new/path') or die "Can't move: $!";
--
Ilya Martynov
(http://martynov.org/)
|
|---|