It looks to me like a very simple awk-like approach would serve you... Translation of this concept into actual Perl source-code is left as an exercise to the reader, and s/he has about thirty years' worth of source-code to get ideas from.
So your original and most recent replies could be distilled and clarified into two words: "Google it." Wonderful. That's most helpful.
Give a man a fish: <%-{-{-{-<
In reply to Re^4: Parsing { } nested data in a file
by AnomalousMonk
in thread Parsing { } nested data in a file
by daniel99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |