From d25e62947b0777dedfed9171a9727adf20123adf Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Wed, 29 Mar 2023 09:12:45 -0700 Subject: Fix some wording per @demerphq --- pod/perlfunc.pod | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'pod') diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 8becd9bed6..1b30513902 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -6094,9 +6094,7 @@ one element. # @arr is now ('cat', 'dog') -Returns C if the array is empty. If ARRAY is omitted, C operates on -the L|perlvar/@ARGV> array in the main program, but the -L|perlvar/@_> array in subroutines. +Returns C if the array is empty. B C may also return C if the last element in the array is C. @@ -6104,8 +6102,10 @@ is C. my @arr = ('one', 'two', undef); my $item = pop(@arr); # undef -C will operate on the C<@ARGV> array in C, -C, C, C blocks. +If ARRAY is omitted, C operates on the L|perlvar/@ARGV> array +in the main program, but the L|perlvar/@_> array in subroutines. C +will operate on the C<@ARGV> array in C, C, C, +C blocks. Starting with Perl 5.14, an experimental feature allowed L|/pop ARRAY> to take a @@ -7678,9 +7678,7 @@ array by one and moves everything down. # @arr is now ('dog'); -Returns C if the array is empty. If ARRAY is omitted, C -operates on the C<@ARGV> array in the main program, and the C<@_> array -in subroutines. +Returns C if the array is empty. B C may also return C if the first element in the array is C. @@ -7688,8 +7686,9 @@ is C. my @arr = (undef, 'two', 'three'); my $item = shift(@arr); # undef -C will operate on the C<@ARGV> array in C, -C, C, C blocks. +If ARRAY is omitted, C operates on the C<@ARGV> array in the main +program, and the C<@_> array in subroutines. C will operate on the +C<@ARGV> array in C, C, C, C blocks. Starting with Perl 5.14, an experimental feature allowed L|/shift ARRAY> to take a -- cgit v1.2.1