in reply to Why doesn't' eval{} trap die() when using File::Find?
the error is obvioususe strict; use warnings;
} is not the same as )$ perl junk852728.pl syntax error at junk852728.pl line 9, near "$dir }" Global symbol "$dir" requires explicit package name at junk852728.pl l +ine 14. Global symbol "$dir" requires explicit package name at junk852728.pl l +ine 16. Unmatched right curly bracket at junk852728.pl line 18, at end of line syntax error at junk852728.pl line 18, near "}" Execution of junk852728.pl aborted due to compilation errors.
-eval { find( \&wanted, $dir }; }; +eval { find( \&wanted, $dir ); };
|
|---|