Click here to get back home

finding version number of a library

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
finding version number of a library Nick Wedd 08-10-2007
Posted by comp.llang.perl.moderated on August 16, 2007, 12:57 pm
Please log in for more thread options


> On Aug 15, 9:09 pm, "comp.llang.perl.moderated" <c...@blv-
>
> sam-01.ca.boeing.com> wrote:
> > one other option is to request a humongously
> > version number (perldoc -f use) :
>
> > $ perl -e "use GD 9999"
> > GD version 9999 required--this is only version 2.35 at -e line 1.
>
> Just don't try this for File::Slurp, which is at version 9999.12! (I
> don't know if there are any other CPAN modules with falsely inflated
> version numbers above 9999?)

No, if there's no error message, then you know
it's a "Slurp-y" style so you just bump the
version a couple more 9's.

Even with a rare, add-on edit, this's
easier than $MODULE_NAME::VERSION...

--
Charles DeRykus



Posted by Michael Carman on August 16, 2007, 8:18 pm
Please log in for more thread options


On 8/10/2007 5:54 AM, Nick Wedd wrote:
>
> When my code says
> use GD;
> it works. My guess is that my web host has installed a copy of the GD
> module. How can I find its version number?

Standard Perl practice is to define a $VERSION variable for each module
(although nothing forces authors to do so). So C<$GD::VERSION> should hold the
version.

Normally the only reason you care about this is if your code depends on a
certain (minimum) version, in which case you should specify it in the 'use'
statement. e.g.

use GD 2.10;

-mjc

Similar ThreadsPosted
http, library loaded, httpS library can't be found November 8, 2004, 9:51 am
Perl MakeMaker - how to force Perl linking with the static C library (libcrt.lib) instead of dynamic C library (msvcrt.lib) April 17, 2007, 5:22 pm
File::Spec version 0.08 required--this is only version 0.87 December 22, 2004, 4:00 pm
Finding installed modules January 8, 2008, 4:52 pm
Finding out the time on an FTP server using perl August 30, 2005, 5:27 am
Problems finding gd.pm in perl 5.8.6 using linux February 16, 2006, 4:59 pm
Problem with MIME-tools 5.414 not finding encode_qp October 27, 2004, 8:00 pm
Using a .SO library with Inline January 28, 2005, 12:55 pm
Callback from threaded c-library February 21, 2005, 3:18 pm
library not found in openssl May 21, 2006, 12:59 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap