Catmandu::Importer::Mock - Mock importer used for testing purposes
use Catmandu::Importer::Mock; my $importer = Catmandu::Importer::Mock->new(); my $n = $importer->each(sub { my $hashref = $_[0]; # ... });
Create a new Mock importer. Optionally provide a size parameter.
Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.
Catmandu::Iterable
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.