- ${^MATCH}
-
This is similar to
$&
($MATCH
) except that it does not incur the performance penalty associated with that variable.これは
$&
($MATCH
) と同様ですが、この変数と関連付けられた性能上の ペナルティを被りません。See "Performance issues" above.
前述した "Performance issues" を参照してください。
In Perl v5.18 and earlier, it is only guaranteed to return a defined value when the pattern was compiled or executed with the
/p
modifier. In Perl v5.20, the/p
modifier does nothing, so${^MATCH}
does the same thing as$MATCH
.Perl v5.18 以前では、パターンが
/p
修飾子付きでコンパイルまたは実行された 場合にのみ定義された値を返すことが保証されます。 Perl v5.20 では、/p
修飾子は何もしないので、${^MATCH}
は$MATCH
と 同じです。This variable was added in Perl v5.10.0.
この変数は Perl v5.10.0 で追加されました。
This variable is read-only and dynamically-scoped.
この変数は読み込み専用で動的スコープを持ちます。