I just quickly checked the code feature.pm- the version itself is not stored anywhere. Alex's answer has already shown how to test specific functions that arise as a result of a call.
Also note that use VERSIONyou can call in several places (for example, in modules).
One hypothetical option is to override useand write the version number for verification.
Change: . Some pop up in the direction of the hook:
use version;
use subs 'require';
BEGIN {
sub require {
warn "use ",version->parse($_[0]);
};
}
use 5.12.0;
, .