I know this may sound weird but I was wondering if there was a way to run a perl script in a diagnostic mode where the script wouldn't do anything more than check for syntax errors.
Is there a flag to run that won't have the script process the code but just come back if it detects an error?
Some background: I do most of my scripting through notepad and the command line, even CGI scripts. I don't always have access to my web server so I like to run snippets of code through the command line to see if it succeeds syntantically. Since my web server has a lot of perl modules and log files on my workstation, I'd like a way to run the script knowing it won't actually try to do anything. I just want to see if it knows I made a typo or forgot a brace somewhere.