|No such thing as a small change|
Putting text file into a hashby remluvr (Sexton)
|on Oct 17, 2008 at 08:15 UTC||Need Help??|
remluvr has asked for the
wisdom of the Perl Monks concerning the following question:
Hi to everyone!
I've started playing around with perl just a week ago, and now I've a problem.
I've a text file with a list like this:
and I'd like to import it in a hash (with the left word as a key and the right word as the value) because I need to use them later as two values in a regex.
My code is like this:
but it doesn't seem to work. And, obviously, I can't understand why.
I hope I haven't make too much mistakes posting. I'm italian, so I'm sorry for my bad English.
I'm looking forward for any helpful suggestion..