zee3b has asked for the wisdom of the Perl Monks concerning the following question:
Hey guys, Im trying to parse a file and get an output by giving in house. Example of the code is below
Now I can't use a hash table because it won't allow duplicate keys. I want to be able to put out all the strings when I give the input as "house" or the values of height of table when I give in table. So I want to have a group name, "table" that the program will make automatically and then put the strings in that group, an array or something. The strings have spaces too, but they are in quotation marks. Thanks!set height "house" set height "house" "string" set height "house" "string" set height "table" "string" set height "table" "string"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: What would be the easier way
by james2vegas (Chaplain) on Mar 04, 2013 at 01:00 UTC | |
by zee3b (Novice) on Mar 04, 2013 at 01:12 UTC | |
by james2vegas (Chaplain) on Mar 04, 2013 at 01:50 UTC | |
by Anonymous Monk on Mar 04, 2013 at 01:36 UTC | |
by james2vegas (Chaplain) on Mar 04, 2013 at 01:47 UTC | |
| |
by Anonymous Monk on Mar 07, 2013 at 09:15 UTC | |
Re: What would be the easier way
by CountZero (Bishop) on Mar 04, 2013 at 02:17 UTC |
Back to
Seekers of Perl Wisdom