Also, make sure that the .pl file that you're going to run has the proper permissions set. Generally speaking, if you run a
on the file, that is good enough for most purposes. If you don't, your file won't run.
in before any other print statements, or the browser won't understand in which format to display the content!
Hope this helps...