My scripts don't work when I put them in the cgi-bin folder
By default, scripts in the cgi-bin directory are not executed.
To allow files in the cgi-bin to execute, you must place an .htaccess file with the following lines in it:
Options -Indexes +ExecCGI
AddHandler cgi-script cgi pl
This only works on accounts using Apache.