in reply to File::Find on Win32 - basic problem/question

Try, after correcting your code, with a subdirectory. I do believe File::Find on Windows is broken for the root directory. This works for me:
my $dir = 'c:/windows'; use File::Find (); File::Find::find( {wanted => \&wanted}, $dir ); sub wanted { print "$File::Find::name\n" if /\.ini\z/s; }
and it doesn't do a thing when $dir is set to 'c:/'.

Replies are listed 'Best First'.
Re: Re: File::Find on Win32 - basic problem/question
by roik (Scribe) on Oct 03, 2003 at 12:59 UTC
    It seems to work form me from the root directory with
    $dir = "/";
    At least on XP! Rob.