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:
- 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).
- 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