in reply to package name?

There is a CPAN module out there Module::InstalledVersion :-)
From the SYNOPSIS:
use Module::InstalledVersion; my $m = new Module::InstalledVersion 'Foo::Bar'; print "Version is $m->{version}\n"; print "Directory is $m->{dir}\n";
And not to forget (as I did in the first try), to find any information about a module, use Module::Info

Greetings,
Janek

Replies are listed 'Best First'.
Re: Re: package name?
by jonasbn (Scribe) on Jun 05, 2003 at 07:35 UTC
    I tried Module::Info, but apparently the name retrieval when using Module::Info's new_from_file constructor does not work. I have sent two patches to the author fixing the name and dir part, but I don't think they will be accepted.
      Just to recap, My patches were not accepted by the author of Module::Info, so I have made a class/module inheriting from Module::Info called Module::Info::File. It only holds one method called new_from_file and implements my patches, it is available now from a CPAN mirror near you.