I think it will work if you just leave out the *.* it will work.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 21, 2005 12:14 PM
To: [email protected]
Subject: Find Error Message
Hello
I am working on a perl script and the 1st step is to get a list of all
the files on the C drive. I am getting an error message - Can't stat
c:*.*: No such file or directory
Here is my perl script:
use strict;
use warnings;
use File::Find;
$| = 1; #Autoflush STDOUT
#finddepth comes from File::Find
#finddepth searches from the bottom of the tree up
#finddepth(\&BadNames,"c:\\Directory");
find(\&BadNames,"c:\\*.*");
sub BadNames
{
print $_;
print "\n";
}
What should the find statement look like?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>