[pod] [xml]

NAME

strict - 安全ではないコンストラクトを制限する Perl プラグマ

SYNOPSIS

    use strict;
    use strict "vars";
    use strict "refs";
    use strict "subs";
    use strict;
    no strict "vars";

DESCRIPTION

If no import list is supplied, all possible restrictions are assumed. (This is the safest mode to operate in, but is sometimes too strict for casual programming.) Currently, there are three possible things to be strict about: "subs", "vars", and "refs".

インポートリストを与えない場合は、可能な限り全ての制約を受けます。 (これは、最も安全な動作モードです。ただ、カジュアルプログラミング のためには厳しすぎます。)今のところ、"subs"、"vars"、"refs" の 3つの制約が用意されています。

See perlmodlib/Pragmatic Modules.

perlmodlib/Pragmatic Modules を見てください。

HISTORY

strict 'subs', with Perl 5.6.1, erroneously permitted to use an unquoted compound identifier (e.g. Foo::Bar) as a hash key (before => or inside curlies), but without forcing it always to a literal string.

Perl 5.6.1 での strict 'subs' は、(=> の前や中括弧の中での) ハッシュのキーのとしてクオートすることなしに(Foo::Bar のような) 複合の識別子を使えるようにしてしまっています。このことは間違いでした。 それは、いつでもリテラル文字列です。

Starting with Perl 5.8.1 strict is strict about its restrictions: if unknown restrictions are used, the strict pragma will abort with

    Unknown 'strict' tag(s) '...'

Perl 5.8.1 からの strict は、それらの制約事項について厳格です: もし、知られていない制約事項が使われるならば、strict プラグマは、 次にある記述と共に中断するでしょう。

    Unknown 'strict' tag(s) '...'