Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^3: Best practices for packaging CGI scripts

by westernflame (Sexton)
on Aug 11, 2005 at 20:52 UTC ( #483134=note: print w/replies, xml ) Need Help??

in reply to Re^2: Best practices for packaging CGI scripts
in thread Best practices for packaging CGI scripts

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.
  • Comment on Re^3: Best practices for packaging CGI scripts

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://483134]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2018-06-20 13:49 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.