If that code looks too long and redundant to you, you may want to check out
MooseX::Runnable, which takes care of constructing the object and calling
->run() on it for you.

PS. I'm not sure why you are wanting the class to be a singleton; that's
usually a bad idea, and is orthogonal to the considerations of
MooseX::Getopt and MooseX::Runnable anyway.



On Thu, Feb 09, 2012 at 06:21:10PM +0000, sh...@comcast.net wrote:
> This begs a question: what to put in the main program if the class knows all 
> it needs to run? 

-- 
             "Society is like a stew. If you don't keep it stirred
             up you get a lot of scum on the top." - Edward Abbey
            .             .            .            .             .
Karen Etheridge, ka...@etheridge.ca       GCS C+++$ USL+++$ P+++$ w--- M++

Reply via email to