set
# given {1..8}
$hash->set(1,10); # 10
$hash->set(1,12); # 12
$hash->set(1,0); # 0
The set method returns the value of the element in the hash corresponding to the key specified by the argument after updating it to the value of the second argument. This method returns a data type object to be determined after execution.
set(Str $arg1, Any $arg2) : Any
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