++ed by:
SHAW

1 PAUSE user

劉康民

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";
    });