in reply to Directory recursion on win32
So you'll get a warning and the sub will return. You may also want to check rename for success.opendir(DIR, $PWD) or return warn("$0: $! [$PWD]"); ...
Of course, you could always do this with File::Find::Rule, the spiritual successor to File::Find, like so
See. the File::Find::Rule docs for more info.use File::Find::Rule; rename $_ => "${_}z" or warn "$0: $! [$_]" for find(file => in => $ARGV[0]);
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Directory recursion on win32
by fourmi (Scribe) on Aug 04, 2003 at 15:42 UTC |