From cd6104d2493f9dbbe6175f56102af25075c2fe37 Mon Sep 17 00:00:00 2001 From: Dan Book Date: Sat, 1 May 2021 15:46:16 -0400 Subject: [PATCH] perlfunc - mention that delete can only be used on key-value slices since 5.28 --- pod/perlfunc.pod | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 47958b285174..e83f0fabfeb5 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -1612,10 +1612,10 @@ key, but deleting it does; see L|/exists EXPR>. In list context, usually returns the value or values deleted, or the last such element in scalar context. The return list's length corresponds to that of the argument list: deleting non-existent elements returns the undefined value -in their corresponding positions. When a -Lvalue hash slice|perldata/KeyEValue Hash Slices> is passed to -C, the return value is a list of key/value pairs (two elements for each -item deleted from the hash). +in their corresponding positions. Since Perl 5.28, a +Lvalue hash slice|perldata/KeyEValue Hash Slices> can be passed +to C, and the return value is a list of key/value pairs (two elements +for each item deleted from the hash). L|/delete EXPR> may also be used on arrays and array slices, but its behavior is less straightforward. Although