As some people have said, your question is not exactly clear. However, I think I have a solution for you.

As has been pointed out before, don't reinvent the wheel! Now, back when I was naive, I wrote a little faux-XML parser which handled only one specific XML document for a guestbook. It was heck, because I had to rewrite large portions of code everytime I expanded the guestbook's features. Instead of writing a XML parser from scratch, you may be tempted to write a parser just for this document. Don't.

What may be the best solution is to tailor the wheel for your use. For example, CGI.pm uses it's own implementation of the SelfLoader, altering for it's needs and including it in the source. You could go through any of the pure Perl XML parsers mentioned above and figure out how to refit the code into yours. A simpler possibility: cut and past the whole darn thing into your code. This makes it possible to use CPAN modules when you can't use the CPAN - use the module, just package it with the plugin, either by including the file, or using a cut and paste trick. Just remember to give the original author credit!

Cheers,
Erik

In reply to Re: Using Perl for plugins... by erikharrison
in thread Using Perl for plugins... by dockthepod

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.