summaryrefslogtreecommitdiff
path: root/pod/perlfunc.pod
diff options
context:
space:
mode:
authorScott Baker <scott@perturb.org>2023-02-09 11:48:31 -0800
committerYves Orton <demerphq@gmail.com>2023-03-30 01:56:51 +0800
commita25cf22db7942a05b6a733ee154116929def1f2a (patch)
tree94173bef8a7aa7a4e21ac9364fc0dab26a373ae2 /pod/perlfunc.pod
parent723f1a4efab2e3c8c61fbc1dc4d56c7c539b592e (diff)
downloadperl-a25cf22db7942a05b6a733ee154116929def1f2a.tar.gz
Add docs for BEGIN, INIT, CHECK for pop()
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r--pod/perlfunc.pod3
1 files changed, 3 insertions, 0 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 4830428da0..8becd9bed6 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -6104,6 +6104,9 @@ is C<undef>.
my @arr = ('one', 'two', undef);
my $item = pop(@arr); # undef
+C<pop> will operate on the C<@ARGV> array in C<eval STRING>,
+C<BEGIN {}>, C<INIT {}>, C<CHECK {}> blocks.
+
Starting with Perl 5.14, an experimental feature allowed
L<C<pop>|/pop ARRAY> to take a
scalar expression. This experiment has been deemed unsuccessful, and was