in reply to Moose attribute predicate alternative

As well as what choroba said, take a look at XML::Rabbit which is designed to simply mapping between Moose objects and XML.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
  • Comment on Re: Moose attribute predicate alternative