Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: package name?

by bigj (Monk)
on May 14, 2003 at 20:01 UTC ( [id://258234]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://258234]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-25 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found