each
# given ['a'..'g']
$array->each(fun ($index, $value) {
...
});
The each method iterates over each element in the array, executing the code reference supplied in the argument, passing the routine the index and value at the current position in the loop. This method returns a Data::Object::Array object.
each(CodeRef $arg1, Any @args) : Object
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 29:
Unknown directive: =signature
- Around line 33:
Unknown directive: =type