lookup

# given {1..3,{4,{5,6,7,{8,9,10,11}}}}

$hash->lookup('3.4.7'); # {8=>9,10=>11}
$hash->lookup('3.4'); # {5=>6,7=>{8=>9,10=>11}}
$hash->lookup(1); # 2

The lookup method returns the value of the element in the hash whose key corresponds to the key specified in the argument. The key can be a string which references (using dot-notation) nested keys within the hash. This method will return undefined if the value is undef or the location expressed in the argument can not be resolved. Please note, keys containing dots (periods) are not handled. This method returns a data type object to be determined after execution.

lookup(Str $arg1) : 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 32:

Unknown directive: =signature

Around line 36:

Unknown directive: =type