Shawn H Corey <shawnhco...@gmail.com> writes: > As Paul Johnson says, try it with the -c option first but note: > > -c causes Perl to check the syntax of the program and then exit > without executing it. Actually, it will execute and "BEGIN", > "UNITCHECK", or "CHECK" blocks and any "use" statements: these are > considered as occurring outside the execution of your program. > "INIT" and "END" blocks, however, will be skipped.
I'm sorry to keep harping along...and wasting your time, especially since your posts have been very helpful to me for, literally, yrs on this list. Maybe I'm missing some posts... I only see one by Paul in this thread, and it doesn't mention anything about Perl::Critic. Are we even talking about the same program... Perl::Critic/perlcritic? For me, it just blows up with piles of help information when I use `-c': perlcritic -c ./psr perlcritic -c ./psr Option c is ambiguous (color, color-severity-1, color-severity-2, color-severity-3, color-severity-4, color-severity-5, color-severity-high, color-severity-highest, color-severity-low, color-severity-lowest, color-severity-medium, colour, colour-severity-1, colour-severity-2, colour-severity-3, colour-severity-4, colour-severity-5, colour-severity-high, colour-severity-highest, colour-severity-low, colour-severity-lowest, colour-severity-medium, count, cruel) Usage: perlcritic [-12345 | --brutal | --cruel | --harsh | --stern | --gentle] [--severity number | name] [{-p | --profile} file | --noprofile] [--top [ number ]] [--theme expression] [--include pattern] [snip<8---snip<8] Without the -c it just returns: perlcritic ./psr ./psr source OK However, it does appear to have a series of progressively severe flags: --gentle, --stern, --harsh, --cruel and --brutal. Hehe... Going right to brutal gives reams of suggestions and many lines where things are not .. `tidy' So... away we go again... thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/