I do not have your xlsx file, so I cannot check with *your* data, but when I do with a simple .xlsx file, all goes well:

$ cat pm1178127.pl #!/pro/bin/perl use 5.18.0; use warnings; use Spreadsheet::Read; my $book = ReadData ("julia-good.xlsx"); say "Book was parsed using $book->[0]{parser}-$book->[0]{version}"; say "A1: ", $book->[1]{A1}; my @rows = Spreadsheet::Read::rows ($book->[1]); foreach my $i (1 .. scalar @rows) { foreach my $j (1 .. scalar @{$rows[$i-1]}) { say chr (64 + $i) . " $j " . ($rows[$i - 1][$j - 1] // ""); } } $ xlscat julia-good.xlsx id|text 1|a 2|b 3|c 4|d 5|e 6|f 7|g 8|h 9|i 10|j 2 x 11 $ perl pm1178127.pl Book was parsed using Spreadsheet::ParseXLSX-0.27 A1: id A 1 id A 2 text B 1 1 B 2 a C 1 2 C 2 b D 1 3 D 2 c E 1 4 E 2 d F 1 5 F 2 e G 1 6 G 2 f H 1 7 H 2 g I 1 8 I 2 h J 1 9 J 2 i K 1 10 K 2 j $

So my first hunch is that your .xlsx cannot be parsed by your XLSX parser.


Enjoy, Have FUN! H.Merijn

In reply to Re^10: read from xlsx is throwing error by Tux
in thread read from xlsx is throwing error by ajaykannan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.