Front page | perl.moose |
Postings from December 2010
From: Moritz Onken
December 26, 2010 04:58
Message ID: 35B1710F-1E0C-40B2-A3D3-F35E8F24293E@netcubed.de
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.
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
by Moritz Onken