Okay.

Atleast let me know what the hashes u created will do

They will encapsulate data, that is, they will associate keys with a value, $word with a $count

and what the foreach is intended for

foreach is just like for, it is a loop, it is intended for iterating, in this case over a list of keys

I can understand little bit. But not fully. Just explain me. I will try it

What do you understand?

You use "keys in a hash" in the title, you use two hashes, you use a loop , you recognize i5513 uses two hashes, where is the disconnect?


In reply to Re^7: Comparison between keys in hash by Anonymous Monk
in thread Comparison between keys in hash by sarvan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.