in reply to Re^3: Parse a file and store it in hash of hashes
in thread Parse a file and store it in hash of hashes
Yes you were correct about the typo at line 12. But I need HoH because my file is a collection of cell values like shown below. I had only posted one of the cells.
[CELL_NAME1] COMMENT = "Perl parsing" FIRST = "TEST1" SECOND = "ID1" THIRD = 123 FOURTH = "RANDOM" FIFTH = 12345 SIXTH = 6789 SEVENTH = QWERTY [CELL_NAME2] COMMENT = "Tester" FIRST = "TEST2" SECOND = "ID2" THIRD = 1234 FOURTH = "FOUR" FIFTH = 12345 SIXTH = BOARD SEVENTH = MOUSE [CELL_NAME3] COMMENT = "Parser" FIRST = "TEST3" SECOND = "ID3" THIRD = 12345 FOURTH = "FIVE" FIFTH = 12345 SIXTH = PAD SEVENTH = KEY
I need to generate a HoH structure for this.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Parse a file and store it in hash of hashes
by Discipulus (Canon) on Jan 16, 2017 at 10:06 UTC | |
by Sonali (Novice) on Jan 16, 2017 at 11:45 UTC | |
by johngg (Canon) on Jan 16, 2017 at 12:22 UTC | |
by afoken (Chancellor) on Jan 16, 2017 at 14:08 UTC | |
by Corion (Patriarch) on Jan 16, 2017 at 11:51 UTC |