Why is my perl script printing its entire source code instead of running it?
Make sure you name your perl script to .pl before running it. If it is absolutely necessary that you run your script under different file extensions (such as .cgi or .plx), you may go to control panel -> Site Admin -> Set Script Map to set script mapping for other file extensions to Perl.
Add Your Comments