I've done MVC (Model-View-Controller architecture) web apps for a while now using CGI::Application, but have often heard people in the Java community mention the Model 2 variant of MVC, which is supposed to be more scalable and maintainable. There is a very short Wikipedia page about Model 2 which itself points to a couple of articles.

I'd like to give Model 2 a whirl in Perl (sorry, the rhyming was not intended).

A cursory search on http://search.cpan.org/ didn't turn up anything that looked promising.

Is anybody here doing Model 2 architecture now with existing Perl modules or sets of modules? If so, can you describe your implementation a bit and say what combination of modules you have used? Or if not, any ideas on this are welcome.

It's not that I have a burning need for this at the moment, but I'd like to play with it so I will get a better understanding of it. So please no replies saying "you don't need it..." I agree, I don't need it at the moment, but I do want to play with it.


In reply to Best practices for doing MVC Model 2 in Perl? by dmorgo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.