Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Make Spreadsheet::ParseXLSX be quiet about errors

by NERDVANA (Deacon)
on Aug 20, 2022 at 13:29 UTC ( [id://11146256]=note: print w/replies, xml ) Need Help??


in reply to Make Spreadsheet::ParseXLSX be quiet about errors

Before attempting to redirect STDERR on your own, I would suggest a module like Capture::Tiny

my ($stdout, $stderr, @result) = capture { eval { Spreadsheet::ParseXLSX->new->parse("/tmp/invalid.xlsx") } };

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11146256]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-29 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found