in reply to
Moose/Mouse: assigning default to attribute on first access?
Set your attribute to
lazy => 1
. This is very useful when some attributes' builder functions rely on others' values.
Comment on
Re: Moose/Mouse: assigning default to attribute on first access?
Download
Code
Replies are listed 'Best First'.
Re^2: Moose/Mouse: assigning default to attribute on first access?
by
Anonymous Monk
on Jan 11, 2011 at 14:26 UTC
Perfect, I knew Moose is awesome like that.
[reply]
In Section
Seekers of Perl Wisdom