![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: problem with using subtype from MooseX::Types::NetAddr::IPby zwon (Abbot) |
on Oct 24, 2011 at 14:45 UTC ( #933418=note: print w/replies, xml ) | Need Help?? |
As you declared ip attribute as 'NetAddrIP' Moose want it to be reference to NetAddrIP, you're passing the string. The points you're missing is that NetAddrIP should be without quotes (look into MooseX::Types documentation for the explanation, shortly -- NetAddrIP is a function call), and also you should allow coercion of attribute:
In Section
Seekers of Perl Wisdom
|
|