in reply to Re: map to hash of arrays
in thread map to hash of arrays
The data comes in exactly like that, line by line. I need to ignore the Row \d+ lines and grab the rest of the information, so that I end up with a hash of arrays where 'object_label' are used as keys and 'object_id' with the same 'object_label' are items in an array.Row 17 object_label : yang object_id : 123456 Row 18 object_label : yang object_id : 789101112 Row 19 object_label : yang object_id : 13141516171819
%hash = { 'yang' => [ '123456', '789101112', '13141516171819' ] }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: map to hash of arrays
by ccn (Vicar) on Jul 26, 2004 at 14:26 UTC | |
by emilford (Friar) on Jul 27, 2004 at 13:51 UTC |