The most effective method is to have someone else do it for you, seriously :)
Your data look vaguely like LISP, so I'd search for lisp parsers on CPAN.
Something similar Re: String Search, Re^5: String Search
In reply to Re: Parsing to a hash suggestions
by Anonymous Monk
in thread Parsing to a hash suggestions
by chasdavies
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |