Try SQL::Statement to parse your sql files.
After Compline,Zaxo
In reply to Re: Look Ahead/Behind Via a File Handle by Zaxo in thread Look Ahead/Behind Via a File Handle by cens