|
use Test::Perl::Critic;
use Test::More tests => 1;
critic_ok($file);
----$file is x.pm-----, i used x.pm
critic_ok(x.pm);
After run this code following error occures. I already installed "testperlcritic/Test-Perl-Critic-1.01.tar.gz
" module
root@testsiteQA>>/iw-home/iw-perl/bin/perl Critic1.pl
Can't locate Test/Perl/Critic.pm in @INC (@INC contains: /iw-home/iw-perl/lib /iw-home/iw-perl/site/lib /iw-home/iw-perl/vendor/
BEGIN failed--compilation aborted at Critic1.pl line 1.
please help to solve this
|
|
|
|
|
|
|
// |