$] - Perldoc Browser

You are viewing the version of this documentation from Perl 5.005_02. View the latest version
#$PERL_VERSION
#$]

The version + patchlevel / 1000 of the Perl interpreter. This variable can be used to determine whether the Perl interpreter executing a script is in the right range of versions. (Mnemonic: Is this version of perl in the right bracket?) Example:

warn "No checksumming!\n" if $] < 3.019;

See also the documentation of use VERSION and require VERSION for a convenient way to fail if the Perl interpreter is too old.

AltStyle によって変換されたページ (->オリジナル) /