map
# given {1..4}
$hash->map(sub {
shift + 1
});
The map method iterates over each key/value in the hash, executing the code reference supplied in the argument, passing the routine the value at the current position in the loop and returning a new hash reference containing the elements for which the argument returns a value or non-empty list. This method returns a Data::Object::Hash object.
map(CodeRef $arg1, Any $arg2) : ArrayObject
method
5 POD Errors
The following errors were encountered while parsing the POD:
- Around line 10:
Unknown directive: =name
- Around line 14:
Unknown directive: =usage
- Around line 22:
Unknown directive: =description
- Around line 30:
Unknown directive: =signature
- Around line 34:
Unknown directive: =type