Sure, let me ask a few questions though:

What webserver do you use?

And did the test script hello.pl properly execute from your browser, or did it give a similar error?