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 Sherm Pendley on August 10, 2007, 8:25 am
Please log in for more thread options



>>
>>> I know it is normal in this newsgroup to sneer at anyone who asks a
>>> question that they don't already know the answer to.
>>
>>Is it "normal" for you to introduce yourself by insulting people you've
>>just met?
>
> I haven't just met them. I've been watching them for a good while

Maybe so, but we've just met you - and you've introduced yourself to us by
saying "I know you people are normally quite rude, but I hope you'll make
an exception for me."

We live by the rule here, that it's better to teach someone to fish than to
give him a fish. Some newbies expect free fish, and like to imagine they've
been sneered at when they get a free fishing lesson instead.

You "know" far less about these Perl groups than you think you do.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net

Posted by Sisyphus on August 10, 2007, 7:43 am
Please log in for more thread options




>I know it is normal in this newsgroup to sneer at anyone who asks a
>question that they don't already know the answer to.

In all seriousness, I believe that's the way it is in *some* newsgroups ...
but not to *this* one.

Cheers,
Rob


Posted by RedGrittyBrick on August 10, 2007, 10:07 am
Please log in for more thread options


Nick Wedd wrote:
> I know it is normal in this newsgroup to sneer at anyone who asks a
> question that they don't already know the answer to.

You're wrong, I often ask such questions and don't recall getting
sneered at normally. What you fear might be better expressed as:

It is commonplace in this newsgroup to express exasperation at anyone
who asks a question that can be *easily* answered from well-known
sources such as the Perl documentation, the newsgroup FAQ or Google.

You can often avoid such responses by introducing your question with a
short description of what you've tried. For example: "I've read 'perldoc
perlmod' and googled for 'perl module version' but not found how to ..."

The very act of composing such a sentence usually makes me double check
those sources - from which I often find something I overlooked.

> But I'll give it a shot anyway.

I find this newsgroup works well so long as you are not particularyly
thin-skinned nor have an overly inflated sense of your own infallibility :-)


> 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?

I think the `print $<modulename>::VERSION` idiom ought to work with any
module from CPAN.

Posted by comp.llang.perl.moderated on August 15, 2007, 4:09 pm
Please log in for more thread options


> I know it is normal in this newsgroup to sneer at anyone who asks a
> question that they don't already know the answer to. But I'll give it a
> shot anyway.
>
> 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?
>

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.

--
Charles DeRykus




Posted by Dan Otterburn on August 16, 2007, 3:45 am
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?)


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