I would recommend using require 5.x over using $[. It is shorter, direct, and makes more sense when reading the code.
Also, not to be pedantic, but I think a ; is needed:
require 5.6.1;</ajdelore>
In reply to Re: Re: Checking Perl version
by ajdelore
in thread Checking Perl version
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |