Hiya, been a while...

I decided to re-write an OLD project using new techniques. This is not a "show me how to do my homework" question, I just keep reading around in circles, so here goes.

What I would like to code is a persistent SERVER in Perl that accepts a RESTful transaction from a PHP page running.

The Perl server accepts the transaction, sanity and security tests the CRUD request then makes an SNMP connection with a third network element (switch on the net) and returns the gathered MIB information back up to the RESTful caller in the PHP/Javascript code.

If this isn't bad enough ;-) I want to write the Perl server using Moose.

Any pointers Monks? I have been reading HTML::Engine and Plack. Nothing seems to quite fit.

+------------+ | | | web page | | <TEST> |-------->+------------------+ | | | Perl Server | +------------+ | SNMP::Something | ^ +------------------+ |_____________| | ^ | | +---\/----------+ | CISCO IOS MIB | +---------------+

My old way, the server is just a once off transaction and the message passing is a kludge using stdio and stderr and the code is awful!!!

All pointers appreciated. Ta. Marky.

Thanks for the suggestion (see title) and the links. I have Modern Perl, read it heaps of times and even implemented some code in a serious environment! But I need to sort this particular thingy out. Thanks for the stuff. The more the merrier... :-)


In reply to pointers for creating a persistent RESTful server using Moose by addinall

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.