Redirecting STDERR is a tricky thing, there are long perldocs on this issue, and I'm not too confident about portability here.
And you loose the ability to just selectively silence known warnings, while still being alarmed by unknown issues. So you will need to parse that variable afterwards.
If you really want to capture all errors indiscriminately, better use warnings FATAL => 'all' inside eval (hence only for that lexical scope)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
well, ok. One advantage of redirecting STDERR is that print STDERR will also be caught.
But the errors you've shown most certainly come from some Carp routines.
(FWIW you might alsow want to look into Carp for silencing advice)
In reply to Re^3: Make Spreadsheet::ParseXLSX be quiet about errors ( STDERR redirection ) (UPDATED)
by LanX
in thread Make Spreadsheet::ParseXLSX be quiet about errors
by leszekdubiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |