in reply to testing cgi scripts

You probably have to associate the .pl (and .pm?) extensions with ActivePerl in your web server configuration. But this may be a simple problem of extensiosn. CGI scripts don't just automatically run when you give it an extension of .cgi. If your CGI script had a .pm extension, that's how you should be requesting it. But a word of warning: .pm files are modules, not stand-alone scripts. It's weird that you would be running a .pm file as a CGI script. Are you sure it shouldn't be .pl?