use Test::More; eval "use Test::Perl::Critic"; if ( $@ ) { plan skip_all => "because Test::Perl::Critic required for these tests"; } else { all_critic_ok(); }