#!/usr/bin/perl use strict; use warnings; use CPAN; my $mod = shift @ARGV; for $mod(CPAN::Shell->expand("Module", $mod)) { print "The current version is: ", $mod->cpan_version, "\n", "The installed version is: ", $mod->inst_version, "\n", $mod->inst_file, "\n", "Perl $]\n", "$^O\n"; }