perl-5.38.0
uc EXPR
uc

Returns an uppercased version of EXPR. If EXPR is omitted, uses $_.

EXPR の大文字版を返します。 EXPR が省略されると、$_ を使います。

    my $str = uc("Perl is GREAT"); # "PERL IS GREAT"

This function behaves the same way under various pragmas, such as in a locale, as lc does.

この関数は、ロケールのようなさまざまなプラグマの影響下では、 lc と同様に振る舞います。

If you want titlecase mapping on initial letters see ucfirst instead.

最初の文字のタイトル文字マッピングがほしい場合は、 代わりに ucfirst を使ってください。

Note: This is the internal function implementing the \U escape in double-quoted strings.

注意: これは、ダブルクォート文字列における、 \U エスケープを 実装する内部関数です。

    my $str = "Perl is \Ugreat\E"; # "Perl is GREAT"