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>


Reply via email to