Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Favorite MooseX Modules?

by phaylon (Curate)
on Aug 07, 2009 at 20:55 UTC ( #786926=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Favorite MooseX Modules?
in thread Favorite MooseX Modules?

From what I can tell, there are two things you need to do:

  1. Create your own role that implements the get_config_from_file role, using a config loader of your choice (take a look at Config-Any).
  2. Use new_from_config instead of new. This method will initialize your object with the values returned by the get_config_from_file method.

The synopsis has a more complex example of this.


Ordinary morality is for ordinary people. -- Aleister Crowley


Comment on Re^3: Favorite MooseX Modules?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-12-20 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls