I want to have only one copy of Formmail(my example) program sit in one place and user can access it indirectly(fill in form and send mail thr it). this way, if formmail has new update come out, i can make a change very quickly.
something like this

i have formmail.pm which is one big
sub run { everything else here }

then each user cgi-bin dir has mailer.cgi :
use libs '/where/formmail.pm/is'; run;

but i am stuck. i tried the above approace, it loads up the form, and once the form submitted, it try to locate formmail.cgi in the same dir where mailer is. i don't know how exactly i should make it works as i expect. i need idea/concept..

There are probably other ways(better) to do it, i would love to hear it too.

TIA,
James.

In reply to wrapper for single cgi program by Anonymous Monk

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.