in reply to Re^15: Addional "year" matching functionality in word matching script
in thread Addional "year" matching functionality in word matching script

edit**
  • Comment on Re^16: Addional "year" matching functionality in word matching script

Replies are listed 'Best First'.
Re^17: Addional "year" matching functionality in word matching script
by bms9nmh (Novice) on Jul 01, 2016 at 15:02 UTC
    Actually it is starting to make more sense the longer I look at it.
      I can see that my  $value = $csv2hash{$csv2}; creates a variable from the words in titles stored in the csv2hash. What I'm not clear on is why is the hash is now written with a $ sign (denoting that it is a variable) rather than a % sign? Also why is $csv2 written in the curly brackets? When the hash was created it applied specifically to csv2, so why is there a need to define csv2 again in this line of code? Thanks

        See http://perl101.org/hashes.html, for example. (There are many other webpages that one can visit to get similar tutorials. This one was #3 in the list of search results when I Googled "hashes perl".)

        Hashes. They are simple. I give it a key, I get back a value. Very fast.