Hi,

I want to publish one of my modules on cpan and wanted to get your blessings 
first.
What it does from the pod:

Moose type constraints restrict based on the value of the attribute. Using this 
module, attributes can have more complex constraints, which involve values of 
other attributes. It comes with a few constraints and can easily be extended.

 package Address;
 use MooseX::Dependency;

 has street => ( is => 'rw', dependency => All['city', 'zip'] );
 has city => ( is => 'ro' );
 has zip => ( is => 'ro', clearer => 'clear_zip' );

Find the complete pod and source at 
https://github.com/monken/p5-moosex-dependency

Cheers,

mo

Reply via email to