Hi.. I need to know why is this code is not working. I am on Perl 5.14 and windows 2008 R2.
use File::Random qw/:all/;
$dir = "E:\\";
my $file = random_file(
-dir => $dir,
-check => qr/.../, # or sub { .... }
-recursive => 1 # or 0
);
print $file;
OUTPUT:Can't stat E:: No such file or directory
at C:/Perl/site/lib/File/Random.pm line 121
The $dir works for the default directory(the directory from which it is invoked)by specifying "." . But is gives this error if i try to specify the directory as E: or anything else which are valid paths. Anybody knows Why?
One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man.
-Elbert Hubbard