gautam_9jan 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: hashes of hashes
by Ratazong (Monsignor) on Feb 10, 2011 at 14:43 UTC

    Let me google this for you: here!

    There are thousands of webpages on the topic "hash of hashes" ... but google is pretty clever in listing the useful ones first ... read them and learn ...

Re: hashes of hashes
by Anonymous Monk on Feb 10, 2011 at 13:18 UTC
Re: hashes of hashes
by Utilitarian (Vicar) on Feb 10, 2011 at 14:05 UTC
    A hash stores things by key and value vary similar to the way the Berkeley sleepycat DB engine does, so I guess you'd do it that way.

    you would have a searchable key and the value could be a hash reference with the names of the other fields as keys of the referenced hashes.

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
Re: hashes of hashes
by Anonymous Monk on Feb 10, 2011 at 18:03 UTC

    “Dear Monks:   Please tell me insert homework question here.”

    Did it never occur to you good people ... even if you try to hide as “Anonymous Monk” ... that your professor is probably on PerlMonks, too?

    Trust me on this:   if you are in a class to learn how to use a programming language, it will challenge you in ways that no other endeavor will do, and you must learn how to accomplish the task ... or you will flunk, no matter how much you “Google it.”   The time will come when you are in the water, and “you cannot merely read a book on How To Swim, and not expect to drown.”   The time you waste trying to persuade pros to spoon-feed you the answers, will only make it worse.

      Doesn't it make more sense to help people like the OP flunk out so that more deserving people get a chance?? ;-)

      Elda Taluta; Sarks Sark; Ark Arks

        Argel, you're mean, evil, and nasty. Nobody here would ever stoop to anything like that! I'm going to set a good example, just to show you.

        !#perl-w qx#python -c 'print "A hash of hashes"[::-1]'|awk '{split($0,a,"");n=l +ength(a);while(n!=0){printf "%%s", a[n]>"HoH";n--}}'#

        See? Writing a hash of hashes to a file is really simple. :)

        -- 
        Education is not the filling of a pail, but the lighting of a fire.
         -- W. B. Yeats