Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Reading and printing an XLSX file

by Athanasius (Archbishop)
on Mar 21, 2019 at 07:59 UTC ( [id://1231520]=note: print w/replies, xml ) Need Help??


in reply to Reading and printing an XLSX file

Hello jsuresh,

Please reformat your post by removing paragraph tags from code and enclosing code in <code> ... </code> tags.

You should always have

use strict; use warnings;

at the head of your script. In this case, warnings would have told you that the lexical variable $workbook is declared twice. The second declaration:

my $workbook = Spreadsheet::WriteExcel->new("$FILENAME");

overrides the first, so that module Excel::Writer::XLSX is never actually used.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Log In?
Username:
Password:

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

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

    No recent polls found