Your shebang line, perl -a, enables autosplit mode when used with -n or -p, according to perldoc perlrun. What do you suppose it does without the additional flags?
-w is limited compared to use warnings within the file, and anyway, you also need use strict.If you use vi or emacs or some other coding editor, even if it doesn't specifically understand Perl, it will understand mis-matched quotes, and you'll see a chunk of code the wrong colour / font. If the main program looks allright, look at the modules and config files.
Have you run perltidy? The formatting helps indicate where it thinks syntax errors begin. Have you used perlcritic?
Have you tried running the program in the debugger, so you can go line by line ... you might notice a 20 line jump that bypasses the command you were expecting to see invoked.
As Occam said: Entia non sunt multiplicanda praeter necessitatem.
In reply to Re: Help with error;
by TomDLux
in thread Help with error;
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |