LibreCat / Catmandu-MARC

Catmandu modules for working with MARC data
https://metacpan.org/release/Catmandu-MARC
Other
8 stars 10 forks source link

Perl compilation failes when combining inline MARC fixes with MRC exporters #58

Closed phochste closed 7 years ago

phochste commented 7 years ago

This code:

use Catmandu;
use Catmandu::Fix::marc_map as => 'marc_map';
my $exporter = Catmandu->exporter('MARC');

will die with an error:

Can't locate object method "new" via package "Catmandu::Exporter::MARC" at /Users/hochsten/Dev/Catmandu-MARC/local/lib/perl5/Catmandu/Env.pm line 226.
phochste commented 7 years ago

One can get a working version by explicitly importing Catmandu::Exporter::MARC in the Perl program:

use Catmandu::Exporter::MARC;
use Catmandu::Fix::marc_map as => 'marc_map';
use Catmandu;
my $exporter = Catmandu->exporter('MARC');