You'll see that the author of this module has incorrectly implemented the
VERSION method as:
sub VERSION { $VERSION }
From perldoc UNIVERSAL:
"VERSION ( [ REQUIRE ] )"
"VERSION" will return the value of the variable $VERSION in the
package the object is blessed into. If "REQUIRE" is given then it
will do a comparison and die if the package version is not
greater
than or equal to "REQUIRE".
"VERSION" can be called as either a class (static) method, an
object method or a function.
You should notify the module author to fix this (by removing his method)
Whoa, thats new :) I was always under the impression that sub VERSION
could be specified in modules and was in fact encouraged (Don't ask me
where I got that idea though ;p), but UNIVERSAL takes care of it for you
in the same way import() is handled (IE I know I know *not* by
UNIVERSAL, its the principle I'm comparing it to) if there is no
explicit import() function?
I happen to know the author and he's pretty awesome about this sort of
thing and will let him know so he can fix it :)
Thx :)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>