in reply to Best practices for handling exceptions in die/eval style
However when that does not work I use File::Spec and it never fails:eval { noisy_sub_or_method() };
I don't know why eval fails sometimes or which way is more efficient to trash known and useless errors (I guess devnull).open STDERR, '>', File::Spec->devnull(); noisy_sub_or_method();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Best practices for handling exceptions in die/eval style
by choroba (Cardinal) on Aug 30, 2018 at 00:28 UTC | |
by Anonymous Monk on Sep 06, 2018 at 01:39 UTC |