Or, maybe:my $directory = 'e:\logs'; my $temp = -d $directory ? find ({wanted => \&wanted,bydepth =>0}, $di +rectory) : undef;
if (-d $directory) { # find... } else { # do some error processing stuff }
In reply to Re: catching errors from file::find
by gloryhack
in thread catching errors from file::find
by VicBalta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |