Tony1 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: hash array
by planetscape (Chancellor) on Dec 26, 2006 at 11:29 UTC
Re: hash array
by GrandFather (Saint) on Dec 26, 2006 at 14:58 UTC

    Arrays and hashes can be thought of as letter boxes in a street which stores data. An array uses the street number to identify each letter box. A hash uses a name (which can be a number) to identify each letter box.

    Note that letter boxes can't have big parcels of data in them. In fact, in Perl a letter box (scalar) can have only one item of data, but that item can have the address of another letter box (generally in a different street) or often just a street name (reference to another array of hash).


    DWIM is Perl's answer to Gödel
Re: hash array
by siva kumar (Pilgrim) on Dec 26, 2006 at 11:36 UTC
    You can name it as Associative Arrays . Associative arrays are created with a set of key/value pairs.
    You can create an Associative Array by using the below syntax.
    %arrName = ('key1', 'value1', 'key2', 'value2');

    You can access the associative array values by specifying the keys.
    $arrName{'key1'} will result "value1".
Re: hash array
by siva kumar (Pilgrim) on Dec 27, 2006 at 05:23 UTC
    Hi Martin,

    I am new to perlmonks and I am sorry for linked to copyrighted materials when I replied for the above post.
    Thanks.
A reply falls below the community's threshold of quality. You may see it by logging in.
A reply falls below the community's threshold of quality. You may see it by logging in.
A reply falls below the community's threshold of quality. You may see it by logging in.