Movatterモバイル変換


[0]ホーム

URL:


functions /ucfirst
(source,CPAN)
You are viewing the version of this documentation from Perl 5.41.5. This is a development version of Perl.
#ucfirst EXPR
#ucfirst

Returns the value of EXPR with thefirst character in uppercase (Unicode calls this titlecase). If EXPR is omitted,ucfirst uses$_.

my $str = ucfirst("hello world!"); # "Hello world!"

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

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

my $str = "\uperl\E is great"; # "Perl is great"

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2025 Movatter.jp