grashoper has asked for the wisdom of the Perl Monks concerning the following question:
my previous attempt which is now giving me an error due to the path. //760926 not sure if this link will work. link does not work. from the book I was reading I thought -d was directory, example.. ok I fixed the problem with the move it was due to the directory I was calling it from, I was using a batch file, needed to do a chdir to the correct path apparently the script was looking at the current location, anyways I have it working now.@ARGV = qw(.) unless @ARGV; use File::Find; use File::Copy; use Data::Dumper; @dirs=(); my $dir="\\mlx\\"; find sub {move("$File::Find::name, -d","$dir.$_") or die "This didn't +work either"};
@ARGV = qw(.) unless @ARGV; use File::Find; find sub { print $File::Find::name, -d && "/", "\n" }, @ARGV;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Move using File::Find
by Corion (Patriarch) on Apr 30, 2009 at 20:44 UTC | |
|
Re: Move using File::Find
by Anonymous Monk on Apr 30, 2009 at 22:07 UTC |