in reply to Re: script to check modules exist...
in thread script to check modules exist...

The results of your code are misleading because it tells me I only have one file named "Base.pm".
'Base.pm' => 1,
However, I have 22 installed files named "Base.pm"
Chart/Base.pm DBD/Gofer/Policy/Base.pm DBD/Gofer/Transport/Base.pm DBI/Gofer/Serializer/Base.pm DBI/Gofer/Transport/Base.pm Date/Manip/Base.pm DateTime/Locale/Base.pm Exception/Class/Base.pm ExtUtils/CBuilder/Base.pm ExtUtils/Constant/Base.pm IO/Compress/Base.pm IO/Uncompress/Base.pm Log/Dispatch/Base.pm Module/Build/Base.pm Net/DNS/Resolver/Base.pm TAP/Base.pm TAP/Formatter/Base.pm URI/file/Base.pm XML/SAX/Base.pm YAML/Base.pm YAML/Dumper/Base.pm YAML/Loader/Base.pm
See Find installed Perl modules matching a regular expression

Replies are listed 'Best First'.
Re^3: script to check modules exist...
by anonymized user 468275 (Curate) on May 03, 2011 at 09:00 UTC
    It is of course possible to store the full path as a hash key instead. But it is not easy to specify where the first part of the namespace begins from that, although a site-specific solution should be possible.

    One world, one people