in reply to Perl diagnostics

You can try this: just feed your script to this bash shell program. Name the file checker, and put it in your path somewhere.
#!/bin/bash perl -MO=Deparse,-p $1

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh