Nope, BUILD is where you want to do this.

Would make a nice MooseX:: though :)

- Stevan

On Nov 26, 2009, at 11:46 AM, Ovid wrote:

I have two attributes, 'xml' and 'xml_file' for an object. One or the other must be supplied, but not both.

Must I validated this in BUILD or is there another way of doing this?

Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6


Reply via email to