Whether plugins are the right or wrong way, depends on your problem. Do you want to be able to have everything in one monolithic module or a number of smaller ones.

A good example of were plugins make sense is playing music. No matter what type of file or hardware, you basically have one goal.

DECODE -> DSP? -> PLAY

This is ideal for plugins as you can just "plug-in" the code that knows how to decode the input format. New formats come along? Just write a new plugin. Same with outputting to the hardware.

Whant to have some DSP effects? You set up common hooks and then can "just add" DSP plugins with the proper interface and it all just works (in theory).

-Lee
"To be civilized is to deny one's nature."

In reply to Re^5: How to install self written modules by shotgunefx
in thread How to install self written modules by jeanluca

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.