summaryrefslogtreecommitdiff
path: root/pod/perlfunc.pod
diff options
context:
space:
mode:
authorScott Baker <scott@perturb.org>2023-02-09 15:46:31 -0800
committerKarl Williamson <khw@cpan.org>2023-02-10 21:31:49 -0700
commit34ac82665ce776460beed5d48a4e1acc4943588c (patch)
treeed8c3564a177bc846656d24861380e37d47c65d9 /pod/perlfunc.pod
parent8da6832dfbca54f8380d08a45b2ca920607bf04c (diff)
downloadperl-34ac82665ce776460beed5d48a4e1acc4943588c.tar.gz
Move talk of `$_` above example to be consistent with other funcs
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r--pod/perlfunc.pod4
1 files changed, 1 insertions, 3 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 9f510e9150..78676a099d 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -9663,12 +9663,10 @@ X<ucfirst> X<uppercase>
=for Pod::Functions return a string with the first letter in upper case
Returns the value of EXPR with the B<first> character in uppercase
-(titlecase in Unicode).
+(titlecase in Unicode). If EXPR is omitted, C<ucfirst> uses L<C<$_>|perlvar/$_>.
my $str = ucfirst("hello world!"); # "Hello world!"
-If EXPR is omitted, C<ucfirst> uses L<C<$_>|perlvar/$_>.
-
This function behaves the same way under various pragmas, such as in a locale,
as L<C<lc>|/lc EXPR> does.