Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Setting up helper objects in App::Cmd

by McA (Priest)
on Sep 25, 2012 at 11:22 UTC ( #995528=note: print w/ replies, xml ) Need Help??


in reply to Re: Setting up helper objects in App::Cmd
in thread Setting up helper objects in App::Cmd

Hi Tobyink!

Once again thank you for your reply. A ++ for that.

When I need to do some module initialization for EVERY command. Is there a place/method to do so? Especially when I do initialization work based on the global options. I don't like the idea of doing the same thing, like

require SomeLib; SomeLib->init();
in every command's execute method.

Best regards
McA


Comment on Re^2: Setting up helper objects in App::Cmd
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2015-07-06 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (73 votes), past polls