Regarding the data format, it looks to me to be a string of keys (\w+\:) followed by their values consisting of all characters up to the next key, and the value may be empty. How any subkeys are to be assembled with their parent keys in the output is another matter that needs defining.
UPDATE: Unless we are told otherwise, I see we have been given the subkey arrangement in the example output.
In reply to Re: Parsing file in Perl post processing
by u65
in thread Parsing file in Perl post processing
by gbwien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |