in reply to running cgi scripts locally

You didn't tell us what kind of system you are running or the OS, but put Perl and a web server on your local machine or network.

g_White