![]() |
|
more useful options | |
PerlMonks |
Re: Using Perl for plugins...by erikharrison (Deacon) |
on Mar 08, 2002 at 17:13 UTC ( [id://150373]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|