Subject: | stop setting $VERSION |
There is no clear documentation as to *why* $VERSION gets set by
base.pm. It gets set to a non-number. It gets set in the /base/ class,
meaning that using base.pm can alter the class you're subclassing. It
can cause ->VERSION and $VERSION to disagree. Stop it, or give me a
really good reason, in the documentation.
Demonstration of behavior attached.
--
rjbs
Subject: | b-ver.pl |
package X;
sub VERSION { return 1; }
package Y;
use base X;
print "Y->VERSION ", Y->VERSION, "\n";;
print "\$X::VERSION $X::VERSION\n";
print "\$Y::VERSION $Y::VERSION\n";