in reply to "if" to "case ... end"
searching gives plenty of hits for "SQL parser Perl" also in PM's archives...
Cheers Rolf
( addicted to the Perl Programming Language)