Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by McA (Deacon)
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 chilling in the Monastery: (7)
As of 2014-04-20 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls