|more useful options|
Hashes of arrays populated from a Text Fileby Raya4505 (Novice)
|on Feb 26, 2014 at 14:52 UTC||Need Help??|
Raya4505 has asked for the
wisdom of the Perl Monks concerning the following question:
Hello, oh wise ones. I posted a previous question that I was struggling with for days and someone gave me an answer within 30 minutes, so I'm hoping to be that lucky again. I am very new to PERL so please be gentle and very simple with your answers
I am trying to populate several hashes with arrays in them all from a tab delimited text file. The format of the information is:
So, as you can see, I need the script to be able to go through and put the "matches" together even though they aren't in concecutive order and then populate each matching hash key with the corresponding data; ideally the results would look like this:
Name1 => '1234','5514'; so on and so forth.
Here is the code I have. It works populating, but it doesn't combine the same names and values together, it just creates a new hash for them.
I've looked on here, online and in books, can't get any of the codes to work, so any help would be amazing! Thank you so much in advance!