Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^9: Problem with around BUILDARGS

by Anonymous Monk
on Apr 29, 2011 at 08:09 UTC ( #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? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2022-01-22 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (62 votes). Check out past polls.

    Notices?