To ensure a script has at least version X of perl, you can do the following
require 5.6.8;
What is the best way of checking that a version is not too recent?
(i.e. version 5.8.x if fine, but 5.9 or 5.10 are not ok).
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.
This code will die if the version of Perl is greater than 5.8.9:
You can read more about
$]inperldoc perlvar.