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

Re: Reading and printing an XLSX file

by Athanasius (Bishop)
on Mar 21, 2019 at 07:59 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2019-05-22 10:37 GMT
Find Nodes?
    Voting Booth?
    Do you enjoy 3D movies?

    Results (138 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!