Is there a special variable or a function which gives me the number of use VERSION (in this case 5.12.0) when running the script?
#!/usr/bin/env perl
use warnings;
use 5.12.0;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I just quickly checked
feature.pmcode – the version itself is not stored anywhere. Alex’s answer already showed how to test particular features that results from the call.Also note that
use VERSIONcan be called on several places (in modules for instance).One hypothetical option would be to override
useand record the version number somewhere for inspection.Edit: Some poking in the hook direction:
This limited example reports the version specified, but for real use it would have to be much more robust.