in reply to
Re^8: Problem with around BUILDARGS
in thread
Problem with around BUILDARGS
Another solution sould be to use MooseX::ClassAttribute.
You could then define : class_has 'defaultServerLocation' => (is => 'ro', isa => 'Str', builder =>'buildDefaultServerLocation' );
cpk
Comment on
Re^9: Problem with around BUILDARGS
Replies are listed 'Best First'.
Re^10: Problem with around BUILDARGS
by
Anonymous Monk
on Apr 29, 2011 at 08:44 UTC
I have tested this solution and it works.
However the builder must be lazy (lazy => 1) in order to be correctly initialized in the FOREIGNBUILDARGS sub.
But I don't know why...
Any idea ?
[reply]
In Section
Seekers of Perl Wisdom