diff options
author | Scott Baker <scott@perturb.org> | 2023-01-24 10:02:37 -0800 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-02-07 23:42:19 +0800 |
commit | 84e73d4ea20306de42377d1363057e9baa0a10a1 (patch) | |
tree | c81be16e7f1f6993cb1a74596e4b85929dd0dfbe /pod/perlfunc.pod | |
parent | 376c059310e74ce8b9f3f45a3e9f92160939ca60 (diff) | |
download | perl-84e73d4ea20306de42377d1363057e9baa0a10a1.tar.gz |
Add missing closing parens to the examples
Also removes a comment which is duplicated.
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 4565ac8ad0..3b6312d330 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -6162,13 +6162,12 @@ Adds one or more items to the B<end> of an array. push(@animals, "mouse"); # ("cat", "mouse") my @colors = ("red"); - push(@colors, ("blue", "green"); # ("red", "blue", "green") + push(@colors, ("blue", "green")); # ("red", "blue", "green") Returns the number of elements in the array following the completed L<C<push>|/push ARRAY,LIST>. - # Return value is the number of items in the updated array - my $color_count = push(@colors, ("yellow", "purple"); + my $color_count = push(@colors, ("yellow", "purple")); say "There are $color_count colors in the updated array"; |