How to check for installed Perl modules on solaris?

Is there a quick way to check for installed perl modules on a solaris server? I found using perl -e "use Crypt::DES" will work for checking one package at a time. I was wondering if there was anything else out there?

If you have a perl script which attempts to use all the ones you want, shouldn't it fail gloriously, hence tell you bits are missing?

That is true however, I would prefer to have a quick way of listing what packages are already installed.

I found for what I was looking for. Posting it here in case someone else needs this.

for i in Crypt::CBC Crypt::DES DBI DBD::Oracle DBD::mysql ; do /usr/local/perl-5.8.3/bin/perl -e "eval { require $i; }; if (\$@) { print \"$i - not found\n\"; } else { print \"$i: \$$i::VERSION\n\"}" ; done

This should work.

#!/usr/bin/perl
# list installed modules
use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";
print "$module -- $version\n";
}