Under cover you can find some trick and script to check perl module installation.
To figure out whether perl module is installed at the system. Run:
perl -M<module_name> -e 1
if command return an error or NOT 0(zero) then module is not installed at the moment.
Here is also perl script which help you check a lot of modules:
#!/usr/local/bin/perl
my @modules = qw (put your modules here separated by space without any quotes);
foreach my $module (@modules){
print $module,"\t";
my $result=system("perl -M$module -e 1");
print "Installed" if (!$result);
print "\n";
}
EOF
Genial brief and this mail helped me alot in my college assignement. Thanks you on your information.
I’m glad to help you.