Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2015-11-28 14:32 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (742 votes), past polls