in reply to Checking Perl version
Although if you plan on exiting, you might as well just do:eval { require 5.6.1; }; warn "You do not have the current version of perl." if ($@);
or:use 5.6.1;
And let Perl do the rest of the work (it die()'s if the verion of Perl on that machine is less than the one you specify).require 5.6.1;
|
|---|