ajaykannan has asked for the wisdom of the Perl Monks concerning the following question:
the code is to read the xlsx format file but it showin error like "Can't locate Spreadsheet/Read.pm in @INC (@INC contains: C:/Dwimperl/perl/site/l ib C:/Dwimperl/perl/vendor/lib C:/Dwimperl/perl/lib .) at read_excel.pl line 6. BEGIN failed--compilation aborted at read_excel.pl line 6." But i installed modulue install Spreadsheet::ParseXLSX, install install Spreadsheet::WriteExcel,install OLE::Storage_Lite and still showing error. please help me friends
#!/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: read from xlsx is throwing error
by Athanasius (Archbishop) on Dec 17, 2016 at 02:56 UTC | |
by ajaykannan (Novice) on Dec 19, 2016 at 09:35 UTC | |
by Corion (Patriarch) on Dec 19, 2016 at 10:12 UTC | |
by ajaykannan (Novice) on Dec 19, 2016 at 11:05 UTC | |
by Corion (Patriarch) on Dec 19, 2016 at 11:42 UTC | |
by soonix (Chancellor) on Dec 19, 2016 at 11:11 UTC | |
| |
|
Re: read from xlsx is throwing error
by soonix (Chancellor) on Dec 17, 2016 at 10:47 UTC | |
by ajaykannan (Novice) on Dec 19, 2016 at 09:38 UTC | |
by huck (Prior) on Dec 19, 2016 at 10:11 UTC | |
by soonix (Chancellor) on Dec 19, 2016 at 10:02 UTC | |
by ajaykannan (Novice) on Dec 19, 2016 at 11:18 UTC | |
by soonix (Chancellor) on Dec 19, 2016 at 12:07 UTC | |
|