Perldoc Search: "$]" perl-5.20.1

search official POD


6 PODs, 16 LINEs found.
perlunicode.pod
840 :          if ($] > 5.008) {
848 :          if ($] > 5.008) {
857 :          if ($] > 5.008) {
864 :          if ($] > 5.008) {
876 :            if ($] < 5.008) {
907 :          utf8::downgrade($val) if $] > 5.008;
perlfunc.pod
2903 :         VERSION may be either a numeric argument such as 5.006, which will be compared to $], or a literal of the form v5.6.1, which will be compared to $^V (aka $PERL_VERSION). An exception is raised if VERSION is greater than the version of the current Perl interpreter. Compare with "use", which can do a similar check at compile time.
4510 :         In the peculiar "use VERSION" form, VERSION may be either a positive decimal fraction such as 5.006, which will be compared to $], or a v-string of the form v5.6.1, which will be compared to $^V (aka $PERL_VERSION). An exception is raised if VERSION is greater than the version of the current Perl interpreter; Perl will not attempt to parse the rest of the file. Compare with "require", which can do a similar check at run time. Symmetrically, "no VERSION" allows you to specify that you want a version of Perl older than the specified one.
4551 :             use if $] < 5.008, "utf8";
perlvar.pod
325 :             See also $] for an older representation of the Perl version.
1167 :     $]      See "$^V" for a more modern representation of the Perl version that allows accurate string comparisons.
1171 :                 warn "No PerlIO!\n" if $] lt '5.008';
perldiag.pod
3179 :     $[ used in %s (did you mean $] ?)
3186 :         You probably meant to use $] instead. $[ is the base for indexing arrays. $] is the Perl version number in decimal.
perlvms.pod
46 :     *   the [.Lib.Auto.*Arch**$PVers**Extname*] subdirectory of one of the directories in @INC (where *PVers* is the version of Perl you're using, as supplied in $], with '.' converted to '_'), or
perlstyle.pod
90 :     *   For portability, when using features that may not be implemented on every machine, test the construct in an eval to see if it fails. If you know what version or patchlevel a particular feature was implemented, you can test $] ($PERL_VERSION in "English") to see if it will be there. The "Config" module will also let you interrogate values determined by the Configure program when Perl was installed.
<< Back to Perldoc Search