Catmandu::Importer::Multi - Chain multiple importers together
use Catmandu::Importer::Multi; my $importer = Catmandu::Importer::Multi->new(importers => [ Catmandu::Importer::Mock->new, Catmandu::Importer::Mock->new, ]); my $importer = Catmandu::Importer::Multi->new( 'importer1', 'importer2', ); # return all the items of each importer in turn $importer->each(sub { # ... });
Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu
CPAN shell
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.