in reply to catching errors from file::find
You might want to consider re-working your logic.
@to_search = qw' /exists /doesnt-exist '; # master list find( { wanted => \&wanted, bydepth => 0 }, grep { -d } @to_search);
If you REALLY need to know which ones don't exist, consider grepping that out beforehand.
@not_found = grep { ! -d } @to_search; warn "Not found: " . join(", ", @not_found) . "\n" if @not_found;
|
|---|