Perl to create directories from data gathered from web form

I have a perl script contains a function that creates a directory using an argument as the directory name. When I run it on the command line it works. However when I try to run it from a web site, it returns an internal service error.

I can get a simple hello world to work with a perl script and my index.html --- so my html dir is taking to my cgi-bin, but why can't it run this other on.

Essentially how can I get my web page to execute my script which creates directories on my machine.

The executable bit is set and permissions are 755 for the perl script.

No one wants to touch the perl thread even with a ten foot pole.

just passing by.
does the path where the directory is to be created exist and have the correct permissions ?
(check permissions by simply executing ls -al and id )