Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Using Perl for plugins...

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://150373]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2025-02-18 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found