perl -w progname at the prompt. This will display warnings and other (hopefully) helpful messages before it tries to execute program. To run the program with a debugger use the command perl -d progname