Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Installing Spreadsheet::XLSX

by learnedbyerror (Monk)
on Apr 22, 2018 at 20:17 UTC ( [id://1213383]=note: print w/replies, xml ) Need Help??


in reply to Installing Spreadsheet::XLSX

You may also want to try Data::XLSX::Parser.

If you are dealing with large spreadsheets, as I am, you will find it to be much faster than the alternatives.

Unfortunately, the documentation is somewhat sparse. After hacking around in it, I came up with the following usage pattern as the one the works for me.

my $parser = Data::XLSX::Parser->new; $parser->open($_xls); # dies in module if unable to open $parser->add_row_event_handler( sub { my ($row) = @_; $csv->print( $fh_csv, $row ); } ); $parser->sheet_by_rid( 'rId'.$parser->workbook->sheet_id($_sht) ); close $fh_csv;

It is not well maintained, but as you can see from testers, it passes on all perl versions and has worked for me across 5.18, 5.20, 5.22, 5.24 on MacOS, Linux and Windows.

lbe

Replies are listed 'Best First'.
Re^2: Installing Spreadsheet::XLSX
by learnedbyerror (Monk) on Apr 22, 2018 at 20:23 UTC

    Sorry, didn't realize I posted the above without being logged in an became anonymous :(

    lbe

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-23 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found