in reply to Directory recursion on win32

Further to what others have said you might want to check that you're able to open the directories e.g
opendir(DIR, $PWD) or return warn("$0: $! [$PWD]"); ...
So you'll get a warning and the sub will return. You may also want to check rename for success.

Of course, you could always do this with File::Find::Rule, the spiritual successor to File::Find, like so

use File::Find::Rule; rename $_ => "${_}z" or warn "$0: $! [$_]" for find(file => in => $ARGV[0]);
See. the File::Find::Rule docs for more info.
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: Directory recursion on win32
by fourmi (Scribe) on Aug 04, 2003 at 15:42 UTC
    Okay, had something similar but ripped out for the query, as it happened, also took it out of my version ;) so cheers!