summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2012-01-23 23:38:43 +0100
committerNicholas Clark <nick@ccl4.org>2012-02-18 13:16:51 +0100
commit49a1179c845e0d8d5e9560131c1f3ac064d3cbdc (patch)
tree978cf2f14ab2f3aacfa554048c861827bb1fd42a /lib
parent9e5f1ef1bff730b36ea82e6398352eab5a575b38 (diff)
downloadperl-49a1179c845e0d8d5e9560131c1f3ac064d3cbdc.tar.gz
Teach Pod::Functions that each, keys and values also operate on arrays.
These were added to the section 'Functions for real @ARRAYs' in perlfunc.pod by commit a5ce339cb0c533c9 in Sep 2010. As ever, tweak the golden results in the test to match these changes.
Diffstat (limited to 'lib')
-rw-r--r--lib/Pod/Functions.pm6
-rw-r--r--lib/Pod/t/Functions.t2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Pod/Functions.pm b/lib/Pod/Functions.pm
index 6c3cb8211c..1132d2e8df 100644
--- a/lib/Pod/Functions.pm
+++ b/lib/Pod/Functions.pm
@@ -178,7 +178,7 @@ delete HASH deletes a value from a hash
die I/O,Flow raise an exception or bail out
do Flow,Modules turn a BLOCK into a TERM
dump Misc,Flow create an immediate core dump
-each HASH retrieve the next key/value pair from a hash
+each ARRAY,HASH retrieve the next key/value pair from a hash
endgrent User be done using group file
endhostent User be done using hosts file
endnetent User be done using networks file
@@ -237,7 +237,7 @@ index String find a substring within a string
int Math get the integer portion of a number
ioctl File system-dependent device control system call
join LIST join a list into a string using a separator
-keys HASH retrieve list of indices from a hash
+keys ARRAY,HASH retrieve list of indices from a hash
kill Process send a signal to a process or process group
last Flow exit a block prematurely
lc String return lower-case version of a string
@@ -365,7 +365,7 @@ unshift ARRAY prepend more elements to the beginning of a list
untie Objects break a tie binding to a variable
use Objects,Modules,Namespace load in a module at compile time and import its namespace
utime File set a file's last access and modify times
-values HASH return a list of the values in a hash
+values ARRAY,HASH return a list of the values in a hash
vec Binary test or set particular bits in a string
wait Process wait for any child process to die
waitpid Process wait for a particular child process to die
diff --git a/lib/Pod/t/Functions.t b/lib/Pod/t/Functions.t
index f0c74a3589..ec74b43d05 100644
--- a/lib/Pod/t/Functions.t
+++ b/lib/Pod/t/Functions.t
@@ -87,7 +87,7 @@ Numeric functions:
srand
Functions for real @ARRAYs:
- pop, push, shift, splice, unshift
+ each, keys, pop, push, shift, splice, unshift, values
Functions for list data:
grep, join, map, qw/STRING/, reverse, sort, unpack