劉康民 > Rubyish-0.32 > Rubyish::Hash

Download:
Rubyish-0.32.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Rubyish::Hash - Hash (class)

FUNCTIONS ^

new

constructor

inspect #=> perl_string

in

fetch

{}

Retrieves the value Element corresponding to the key.

    $hash = Hash({ hello => "world" });
    $hash->fetch("hello")   #=> world
    $hash->{hello}          #=> world

each

map

    $hash = Hash({ blah~ });
    $hash->each( sub {
        my ($key, $value) = @_;  # specify your iterator
        print "$key => $value\n";
    });
syntax highlighting: