invert
# given {1..8,9,undef,10,''}
$hash->invert; # {''=>10,2=>1,4=>3,6=>5,8=>7}
The invert method returns the hash after inverting the keys and values respectively. Note, keys with undefined values will be dropped, also, this method modifies the hash. This method returns a Data::Object::Hash object. Note: This method modifies the hash.
invert() : 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 20:
Unknown directive: =description
- Around line 27:
Unknown directive: =signature
- Around line 31:
Unknown directive: =type