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,