hashify

# given [1..5]

$array->hashify; # {1=>1,2=>1,3=>1,4=>1,5=>1}
$array->hashify(fun ($value) { $value % 2 }); # {1=>1,2=>0,3=>1,4=>0,5=>1}

The hashify method returns a hash reference where the elements of array become the hash keys and the corresponding values are assigned a value of 1. This method returns a Data::Object::Hash object.

hashify(CodeRef $arg1, Any $arg2) : HashObject

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 21:

Unknown directive: =description

Around line 27:

Unknown directive: =signature

Around line 31:

Unknown directive: =type