diff options
author | Scott Baker <scott@perturb.org> | 2023-02-09 08:52:52 -0800 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-03-30 01:56:51 +0800 |
commit | 723f1a4efab2e3c8c61fbc1dc4d56c7c539b592e (patch) | |
tree | 93cc914d3969d9d3fc5ec3d04f680919be2c09d3 /pod | |
parent | 705da08ddb0a131173ff13b12db7fb21a2d00a48 (diff) | |
download | perl-723f1a4efab2e3c8c61fbc1dc4d56c7c539b592e.tar.gz |
Add a section about additional blocks
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlfunc.pod | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 8c3da1450f..4830428da0 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -7685,6 +7685,9 @@ is C<undef>. my @arr = (undef, 'two', 'three'); my $item = shift(@arr); # undef +C<shift> 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<shift>|/shift ARRAY> to take a scalar expression. This experiment has been deemed unsuccessful, and was |