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


In reply to Moo and Spreadsheet::ParseExcel by karlgoethebier

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.