Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 pondering the Monastery: (17)
As of 2016-02-10 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (354 votes), past polls