http://qs321.pair.com?node_id=1092295


in reply to Re: Run-time equivalent of "use Module VERSION"?
in thread Run-time equivalent of "use Module VERSION"?

> VERSION is magic and always there for you:

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.