I am new to Perl. I have perl5 on my Centos7. I am trying to make `perlcritic`command work on my Centos. I installed perlcritic with the command "cpan Perl::Critic" and tried to run ./perlcritic. I kept installing the dependent modules of perlcritic, and adding the libraries to the @INC. For Clone module, there is no lib. If I move just the Clone.pm to @INC (/usr/share/perl5), I get an error"Can't locate loadable object for module Clone in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/PPI/Element.pm line 25."
If I move whole Clone module to /usr/share/perl5 ,then I still get error saying"Cannot locate Clone.pm".
It would be great if there is any doc for completely installing perlcritic and making it work.
--Thanks in advance