Rubyish::Hash - Hash (class)
constructor
in
Retrieves the value Element corresponding to the key.
$hash = Hash({ hello => "world" }); $hash->fetch("hello") #=> world $hash->{hello} #=> world
$hash = Hash({ blah~ }); $hash->each( sub { my ($key, $value) = @_; # specify your iterator print "$key => $value\n"; });
To install Rubyish, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rubyish
CPAN shell
perl -MCPAN -e shell install Rubyish
For more information on module installation, please visit the detailed CPAN module installation guide.