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] // ''); } }
In reply to read from xlsx is throwing error by ajaykannan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |