On 29/01/11 13:20, Hans Dieter Pearcey wrote:
On Sat, 29 Jan 2011 09:23:45 +0200, "Octavian Rasnita"<orasn...@gmail.com>  
wrote:
I want to use some attributes that get a default value when they are not sent 
as constructor's parameters and also when they are sent as constructor 
parameters but with an undef value.

Use MooseX::UndefTolerant.  The undef values will be ignored and the normal
default/builder mechanism will kick in.

A coercion is wrong, since that will be per-type, not per-attribute or
per-class.

hdp.

That looks very useful.  Thanks for the pointer.

Reply via email to