elaborating a bit from perlobj#VERSION($need) :)
UNIVERSAL::VERSION() is like ->can() a "universal"¹ method and ...
This method is called automatically by the "VERSION" form of "use".use A 1.2 qw(some imported subs); # implies: A->VERSION(1.2);
Cheers Rolf
(addicted to the Perl Programming Language)
¹) All classes automatically inherit from the UNIVERSAL class, which is built-in to the Perl core.
In reply to Re^2: Run-time equivalent of "use Module VERSION"?
by LanX
in thread Run-time equivalent of "use Module VERSION"?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |