in reply to Re^8: read from xlsx is throwing error
in thread read from xlsx is throwing error
thank you for the patience and time upone me corion i tried all of the methods in which you freinds suggested me .But still am not getting exact output. Here is the command used install install install Spreadsheet::Read and result is nolock_cpan> install Spreadsheet::Read Spreadsheet::Read is up to date (0.69). my code is
#!/usr/bin/perl use strict; use warnings; use Spreadsheet::Read qw(ReadData); my $book = ReadData ('simple.xlsx'); 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] // ''); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: read from xlsx is throwing error
by poj (Abbot) on Dec 20, 2016 at 17:03 UTC | |
by smknjoe (Beadle) on Dec 20, 2016 at 20:58 UTC | |
|
Re^10: read from xlsx is throwing error
by Corion (Patriarch) on Dec 20, 2016 at 08:20 UTC | |
|
Re^10: read from xlsx is throwing error
by Tux (Canon) on Dec 20, 2016 at 08:04 UTC |