Catmandu::Importer::XLSX - Package that imports XLSX files
use Catmandu::Importer::XLSX; my $importer = Catmandu::Importer::XLSX->new(file => "./t/test.xlsx"); my $n = $importer->each(sub { my $hashref = $_[0]; # ... });
Create a new XLSX importer for $filename. Use STDIN when no filename is given. The object fields are read from the XLS header line or given via the 'fields' parameter.
Only the first worksheet from the Excel workbook is imported.
Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited. The Catmandu::Importer::XLS methods are not idempotent: XLS streams can only be read once.
Catmandu::Iterable
To install Catmandu::XLS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::XLS
CPAN shell
perl -MCPAN -e shell install Catmandu::XLS
For more information on module installation, please visit the detailed CPAN module installation guide.