SQL::Yapp is a Perl module which embeds SQL completely into Perl. It checks SQL syntax at compile time and fully parses SQL to allow usage of any Perl scalars, arrays, and hashes in an intuitive and safe way. It makes SQL injections virtually impossible while making you feel as if SQL syntax were native to Perl.
cauxp provides additional preprocessing directives designed to help programmers create easily-maintained code. It allows multiline macros without the annoyance of line continuation markers and can do automatic bracketing of macro parameters. It also provides methods for defining groups of related constants and flags. You can also invoke other processors from within cauxp.