in reply to sql editor written in perl

You may want to check out dbish.