A CPAN search for parse sql yields a myriad of results, including SQL::Parser. I've never used the module, but it looks like it has a very long history and its most recent commits are only a few weeks old. Did you try this one? How didn't it work for you?
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: Parse complex SQL statement
by kennethk
in thread Parse complex SQL statement
by perl_help26
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |