Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Module version checking flaw?

by John M. Dlugosz (Monsignor)
on Nov 07, 2002 at 21:07 UTC ( #211230=note: print w/replies, xml ) Need Help??


in reply to Module version checking flaw?

Check out Everything you wanted to know about Module Version Numbers and Checking.

The v1.2.6 (the v is implied in the use parameter) is totally different from the string "1.2.6".

You can't pass a string to the VERSION check via the indirect object parameter to use.

You might try passing it as a normal argument to the import function via the import list, instead.

Perhaps the module implements checking one way but not the other; after all, they are incompatible in what you need to have in $VERSION.

See also Ordered Comparison of Generalized Version Strings., which is similar to tye's code but taken to the limit.

—John

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2022-08-17 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?