i am posting this quote from my private msg so it will help other people *thank*
CGI Perl is already set up so this is simple.
It is assumed that you have switched on web server.
Open the web server folder that is located in the Library folder that is in the hard drive.
In this folder there is a folder called CGI-Executables, The scripts go in here.
Open the Documents folder that is in the web server folder and create a new folder called cgi-bin
DO NOT PUT ANY THING IN IT. When you call a script under http you would say :-
http://localhost/cgi-bin/thescript.cgi
The scripts are locaated in the CGI-Executables folder of web server.
Things to know : -
Perl Bin :- #!/usr/bin/perl
THIS IS IMPORTANT OR THEY WILL NOT WORK
When a new file/script is placed in the web server CGI folder you have to change the file permissions
to be able to access/execute it to do this :-
Open the terminal and type the following
cd /
cd library/webserver/CGI-Executables
chmod 755 thefilename