check whether a Perl module is installed

for example: check modul Mail::Mailer use the command: # perl -MMail::Mailer -e 1 echo $? You can find a version number like this: # perl -MMail::Mailer -le ‘print $Mail::Mailer::VERSION’ Is the Modul not installed! you can use perl on the command line # perl -MCPAN -e shell (or direct perl -MCPAN -e “install Mail::Mailer”) at […]

Tagged , ,