Subject: | Test 04critic written badly |
Your 04critic.t contains:
eval { use Test::Perl::Critic; };
This doesn't work as intended. Block eval compiles the contained code at
compile time, not runtime. So it failes right at the moment the script
is parsed and if Tast::Perl::Critic isn't installed, the use statement
fails immediately and the eval is never reached.
See the manpage for Test::Perl::Critic how this can be written safely.
Thanks,