karlgoethebier has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks, this code...
package MyParseExcel; use Spreadsheet::ParseExcel; use Moo::Role; use MooX::Types::MooseLike::Base qw(InstanceOf Str); 1;
...leads to:
Use of uninitialized value $roles[0] in sort at C:/Perl/site/lib/Role/Tiny.pm line 199. Compilation failed in require at C:\path\run.pl line 6.
But this one...
package MyParseExcel; # use Spreadsheet::ParseExcel; use Moo::Role; use MooX::Types::MooseLike::Base qw(InstanceOf Str); 1;
...works. In Role::Tiny i see...
sub _composite_info_for { my ($me, @roles) = @_; $COMPOSITE_INFO{join('|', sort @roles)} ||= do { # <-- 199 _load_module($_) for @roles; my %methods; foreach my $role (@roles) { my $this_methods = $me->_concrete_methods_of($role); $methods{$_}{$this_methods->{$_}} = $role for keys %$this_methods +; } delete $methods{$_} for grep keys(%{$methods{$_}}) == 1, keys %meth +ods; +{ conflicts => \%methods } }; }
Perhaps i found another module that can't with Moo? This was my doubt using Moo: Long time used modules don't work as expected. Hope i don't miss something.
Thank you for your patience and help.
Regards, Karl
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Moo and Spreadsheet::ParseExcel
by tobyink (Canon) on Nov 08, 2012 at 22:17 UTC | |
by karlgoethebier (Abbot) on Nov 09, 2012 at 07:59 UTC | |
by tobyink (Canon) on Nov 09, 2012 at 10:46 UTC | |
by karlgoethebier (Abbot) on Nov 09, 2012 at 11:38 UTC | |
by tobyink (Canon) on Nov 09, 2012 at 12:21 UTC | |
| |
by karlgoethebier (Abbot) on Nov 09, 2012 at 10:35 UTC |
Back to
Seekers of Perl Wisdom