Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: Finding version of a Perl module

by itub (Priest)
on Sep 09, 2005 at 15:34 UTC ( [id://490607]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Finding version of a Perl module
in thread Finding version of a Perl module

That's interesting. But if you say use Module1 3.0; (notice that the version number is not in quotes), then you get
Loading Module1...
Module1 version 3 required--this is only version 2.0 at version.pl line 4.
BEGIN failed--compilation aborted at version.pl line 4.

It seems that if you give a number, the version check is done by use, but if you give a string it is treated as the first argument to pass to import, in which case you do need exporter to handle it.

I hadn't noticed because I always call use by giving the version numbers as numbers, not as strings.

Replies are listed 'Best First'.
Re^6: Finding version of a Perl module
by ikegami (Patriarch) on Sep 09, 2005 at 15:37 UTC
    That's interesting! My apologies.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (None)
    As of 2024-04-25 01:45 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found