Re: General Moose/Perl OO question

[email protected] (Karen Etheridge)
Newsgroups perl.moose
Message-ID <[email protected]>
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, [email protected] 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, [email protected]       GCS C+++$ USL+++$ P+++$ w--- M++
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.