Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^9: Problem with around BUILDARGS

by Anonymous Monk
on Apr 29, 2011 at 08:09 UTC ( [id://901943]=note: print w/replies, xml ) Need Help??


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

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 ?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://901943]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-23 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found