R
robb
Hi,
I've taken over management of a website that has absolute chaos in the
organization of the CGI directory (/cgi-bin). There are ~600 files and
directories here, no user-built modules, and perl files
indiscriminately named .pl, .cgi, etc.
Instituting revision control has been a big help.
But specifically to perl, is there a consensus about where to put which
files, and how they should be named? I personally like to develop with
packages and modules, and this is a new thing in this environment. I
so far have these kinds of files that I'm developing:
Test Scripts
Application-Specific Modules
Application-Independent Modules
Application CGI scripts, referenced directly from a web client
Currently, here's what I'm doing, but I don't believe this is optimal:
/cgi-bin
App. CGI scripts, named *.cgi.
App-independent modules named *.pm
/cgi-bin/CamelCaseAppName
App-specific modules, named *.pm
App-specific test scripts, named *.pm
I'm definitely interested in removing things from cgi-bin that don't
need to be there. And, I want to increase maintainability. I also
want to enable automated running of all my tests.
Thanks for any input,
Robb
I've taken over management of a website that has absolute chaos in the
organization of the CGI directory (/cgi-bin). There are ~600 files and
directories here, no user-built modules, and perl files
indiscriminately named .pl, .cgi, etc.
Instituting revision control has been a big help.
But specifically to perl, is there a consensus about where to put which
files, and how they should be named? I personally like to develop with
packages and modules, and this is a new thing in this environment. I
so far have these kinds of files that I'm developing:
Test Scripts
Application-Specific Modules
Application-Independent Modules
Application CGI scripts, referenced directly from a web client
Currently, here's what I'm doing, but I don't believe this is optimal:
/cgi-bin
App. CGI scripts, named *.cgi.
App-independent modules named *.pm
/cgi-bin/CamelCaseAppName
App-specific modules, named *.pm
App-specific test scripts, named *.pm
I'm definitely interested in removing things from cgi-bin that don't
need to be there. And, I want to increase maintainability. I also
want to enable automated running of all my tests.
Thanks for any input,
Robb