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

Yesterday i told myself that i was goin to learn perl. I have read that it is fairly easy compared to other languages. Well after looking for sites that i could use to learn perl i came here. I do love the site. My question is i am having a little bit of trouble understanding how hashes work. If anyone knows of any other references of where i can learn about hashes itwould be a big help.

Replies are listed 'Best First'.
Re: Beginner Trying to Learn Perl
by bradcathey (Prior) on Feb 12, 2004 at 03:07 UTC
    It's already been mentioned, but Randal L. Schwartz's Learning Perl, Chap 5, is a must. So, are the first 9 chapters of Programming Perl (hashes are covered in Chap 9, but then the sledding gets heavy). But I never fully understood hashes until I read the aforementioned Randal L. Schwartz's Perl Objects, References & Modules. The book isn't really about hashes, but he covers a lot of that foundational stuff in a very illustrative and easy to understand way. Pretty soon you'll be talking about HoA's, AoH's, andHoH's--but remember, they're all just scalars.

    Welcome to the monastery. And by the way, Matins are sung at 4:00am so get to bed early.

    Update:
    How could I forget the Perl Cookbook. It's Chap 5 also has a short introduction to basic hashing, but then some simple to complex practical examples. We are so fortunate in Perldom for so many get resources.

    —Brad
    "A little yeast leavens the whole dough."
Re: Beginner Trying to Learn Perl
by jarich (Curate) on Feb 12, 2004 at 04:37 UTC
    A great resource for learning Perl, including hashes and everything else was put together by woolfy. Head over to Where and how to start learning Perl for more information thank you could poke a stick at. ;)

    I hope this helps.

    jarich

Re: Beginner Trying to Learn Perl
by jeffa (Bishop) on Feb 12, 2004 at 01:23 UTC
Re: Beginner Trying to Learn Perl
by artist (Parson) on Feb 12, 2004 at 01:23 UTC
Re: Beginner Trying to Learn Perl
by Theo (Priest) on Feb 12, 2004 at 15:16 UTC
    Here's another node on Monastery learning resources.

    -Theo-
    (so many nodes and so little time ... )

Re: Beginner Trying to Learn Perl
by michaeld (Monk) on Feb 13, 2004 at 07:56 UTC
Re: Beginner Trying to Learn Perl
by MCS (Monk) on Feb 12, 2004 at 21:37 UTC

    Learning perl is a great book, especially if you don't come from a programming background. Programming perl is another great reference but it's a little hard to digest. I find hashes more useful for creating more complex data structures. (I use them a lot as Arrays of Hashes)

    If you are just learning perl, don't spend too much time trying to figure out hashes, move on and come back to them later.