Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Issues with XLSX.pm,

by bliako (Monsignor)
on Dec 15, 2021 at 09:40 UTC ( [id://11139640]=note: print w/replies, xml ) Need Help??


in reply to Re: Issues with XLSX.pm,
in thread Issues with XLSX.pm,

However, the error suggests you are not using a Spreadsheet::XLSX object when calling the add_worksheet method. 

Which can mean (EDIT: among other things, see Re: Issues with XLSX.pm, in this node by Anonymous Monk) that he does not check if the call to create the object was successful:

my $excel = Spreadsheet::XLSX->new('test.xlsx', $converter); die "failed to create" unless defined $excel;

It's likely that instantiation failed because an XS module was not re-compiled re: In the middle of server upgrade because nobody told it to or simply failed.

PS. I would like to see more error checking in Synopses, just for these cases. People just copy-paste that code without too much pondering.

bw, bliako

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-24 03:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found