To start with, you did not explain what the actual you are getting is, that would be very helpful. It would also be helpful if you could paste the source for the Program::Plist::Pl::Pattern class as well as the Program::Plist::Pl::_create_pattern_obj code. Without that all we can do is guess.

How did I get to MooseX::Types::EXPORTED_TYPE_CONSTRAINT?

No idea, would help if we could see the code.

I don't see the output for Moose::Object::new at all, meaning I didn't get there. How have I short circuited the symbol table lookups to get to this code? Is my understanding of how a method is found wrong?

No, your understanding is correct, there is something else going on here which we might be able to diagnose if we could see the code :)

It would appear this code is being called to deal with the arguments to the Pattern->new call, but I see no functions in the arguments to the call.

It doesn't really make sense that it would, unless you are doing something funky in Program::Plist::Pl::Pattern::new, however it could also be Moose::Object::new trying to validate against the type constraint in one of your attriubtes. Again, seeing the code for Program::Plist::Pl::Pattern would help a TON.

And of course, make sure you are up to date on all modules (Moose, MooseX::Types, and MooseX::Params::Validate) if they are not all up to date you may be running into compat issues between them.

-stvn

In reply to Re: Moose, @ISA and method resolution by stvn
in thread Moose, @ISA and method resolution by tj_thompson

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.