Monks,

I'm currently developing a portal-style web application to tie together a number of independantly developed systems, hopefully to improve their accessibility to users and to boost uptake.

Each of these systems returns data in a slightly different format, and I've developed a framework to allow "translation" modules to plug in and interface with each of the external systems, returning data to a core application which is responsible for data presentation and user validation, among other things.

I've been experimenting with XML::Writer as a way of standardising the returns from each of the translator modules, hopefully to allow me to develop a standard interface that the core application can make use of. This module provides much of what I require, and coupled with XML::Parser I can quickly decode the information when it's needed.

This started to get me thinking about Java, and its implementation of beans, and my thinking that the Perl I've developed is essentially simulating that. I did some more searching on CPAN and found PerlBean, but I'm not sure whether using that would have any great benefits. In addition, I'm very much in favour of keeping an XML interface around, as some of the people who'll be working on the system in the future don't use Perl and a standard, non-proprietry interface would be of use.

I'd be interested to hear peoples' thoughts on this, especially concerning the PerlBeans module. Does anyone have experience with this, and, if so, how beneficial was it over simply simulating beans with XML? Any other thoughts and comments are welcome...


In reply to Perl "Beans" ..? by Tanalis

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.