Your power user and your user with limited skill will have different levels of access to the server. A CPAN module is certainly the best way but completely impossible for many users. Without shell access CPAN installation is difficult or impossible. Considering which directories to put files is academic if the user does not have access to anything but a cgi-bin. Some hosts I have come across will even deploy installations of Perl that won’t accept relative file paths.

The most important thing for getting CGI scripts to run on these limited environments is simplicity. They should not require additional CPAN modules. In my opinion the best approach is using an installation script to retrieve variables from the user. The script will be as simple as possible to ensure that it will run in any environment. The users variables can then be entered and checked before more complex parts of the program are used. Far too many perl CGI scripts simply stop working when they have incorrect user entered variables. With respect to system wide installation CPAN installation is certainly the best way to go.

In reply to Re^3: Best practices for packaging CGI scripts by westernflame
in thread Best practices for packaging CGI scripts by ajkessel

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.