ucfirst
uses $_
.
my $str = ucfirst("hello world!"); # "Hello world!"
This function behaves the same way under various pragmas, such as in a locale, as lc
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 the GitHub issue trackeroremail 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 the Perl issue tracker, the mailing list, or IRC to report any issues with the contents or format of the documentation.