martinm has asked for the wisdom of the Perl Monks concerning the following question:
The error is in this segement :Class::MOP::Class::Immutable::Trait #### Class/MOP/Class/Immutable/Trait.pm **** ACME::EAD::Processor #### ACME/EAD/Processor.pm **** Couldn't load class (ACME::EAD::Processor) because: ArrayRef[ReadableD +ir] contains invalid characters for a type name. Names can contain al +phanumeric character, ":", and "." Compilation failed in require at /usr/share/perl5/ACME/EAD/Processor.p +m line 3. BEGIN failed--compilation aborted at /usr/share/perl5/ACME/EAD/Process +or.pm line 3. Compilation failed in require at /usr/lib/perl5/Class/MOP.pm line 118. at /usr/lib/perl5/Class/MOP.pm line 124 Class::MOP::__ANON__('ArrayRef[ReadableDir] contains invalid c +haracters for a type ...') called at /usr/share/perl5/Try/Tiny.pm lin +e 98 Try::Tiny::try('CODE(0xa0375b0)', 'Try::Tiny::Catch=REF(0xa571 +570)') called at /usr/lib/perl5/Class/MOP.pm line 129 Class::MOP::load_first_existing_class('ACME::EAD::Processor') +called at /usr/lib/perl5/Class/MOP.pm line 141 Class::MOP::load_class('ACME::EAD::Processor', undef) called a +t /usr/lib/perl5/Moose/Meta/Class.pm line 288 Moose::Meta::Class::superclasses(undef, 'ACME::EAD::Processor' +) called at /usr/lib/perl5/Moose.pm line 54 Moose::extends('Moose::Meta::Class=HASH(0xa4e7fa0)', 'ACME::EA +D::Processor') called at /usr/lib/perl5/Moose/Exporter.pm line 294 Moose::extends('ACME::EAD::Processor') called at /usr/share/pe +rl5/ACME/EAD/TAM/Processor.pm line 10 require ACME/EAD/TAM/Processor.pm called at /avprog/bin/proces +s_eadesi_tam.pl line 4 main::BEGIN() called at /usr/share/perl5/ACME/EAD/TAM/Processo +r.pm line 0 eval {...} called at /usr/share/perl5/ACME/EAD/TAM/Processor.p +m line 0 Compilation failed in require at /avprog/bin/process_eadesi_tam.pl lin +e 4. BEGIN failed--compilation aborted at /avprog/bin/process_eadesi_tam.pl + line 4.
my $file = _class_to_pmfile($name); print "$file ****\n"; return $name if try { local $SIG{__DIE__}; require $file; $name->VERSION($options->{-version}) if defined $options->{-version}; return 1; } catch { unless (/^Can't locate \Q$file\E in \@INC/) { confess "Couldn't load class ($name) because: $_"; } return; }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Moose - MOP.pm funny
by chrestomanci (Priest) on Mar 09, 2011 at 16:49 UTC | |
by martinm (Novice) on Mar 09, 2011 at 17:51 UTC | |
by ikegami (Patriarch) on Mar 09, 2011 at 20:28 UTC | |
by martinm (Novice) on Mar 10, 2011 at 14:57 UTC | |
by ikegami (Patriarch) on Mar 10, 2011 at 19:52 UTC | |
by martinm (Novice) on Mar 09, 2011 at 16:55 UTC | |
by ikegami (Patriarch) on Mar 09, 2011 at 17:35 UTC | |
|
Re: Moose - MOP.pm funny
by ikegami (Patriarch) on Mar 09, 2011 at 16:59 UTC |