<font size=2 face="sans-serif">In answer to the question raised last night.
 To pretty print SQL I use SQL::Beautify</font>
<br><font size=2 face="sans-serif">Has lots of options to tweak the output
to how you want it.</font>
<br><font size=2 face="sans-serif">Allows additional tokens to be recognised</font>
<br>
<br>
<br><font size=2 face="sans-serif">NAME</font>
<br><font size=2 face="sans-serif">    SQL::Beautify - Beautify
SQL statements by adding line breaks</font>
<br><font size=2 face="sans-serif">    indentation</font>
<br>
<br><font size=2 face="sans-serif">SYNOPSIS</font>
<br><font size=2 face="sans-serif">           
my $sql = SQL::Beautify->new;</font>
<br>
<br><font size=2 face="sans-serif">           
$sql->query($sql_query);</font>
<br>
<br><font size=2 face="sans-serif">           
my $nice_sql = $sql->beautify;</font>
<br>
<br><font size=2 face="sans-serif">DESCRIPTION</font>
<br><font size=2 face="sans-serif">    Beautifies SQL statements
by adding line breaks indentation.</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Regards,</font>
<br><font size=2 color=blue face="sans-serif">Greg George</font><font size=2 face="sans-serif"><br>
</font><font size=2 color=blue face="sans-serif">IT Shared Services</font>
<br><font size=2 color=blue face="sans-serif">Orica Australia Pty Ltd</font>
<br><font size=2 face="sans-serif"><b>p.</b> +613 9091 2492 | <b>f.</b>
+613 9091 2444 | <b>e.</b> greg.george@orica.com</font>
<br><font size=2 face="sans-serif"><b>a.</b> 3/100 Victoria Prd, Melbourne,
Vic, Australia 3001<br>
<br>
</font><font size=1 color=#008000 face="sans-serif">Please consider the
environment before printing this e-mail</font><font face="monospace">***********************************************************************************************************************************************************************************************<br>
Please consider the environment before printing this e-mail.<br>
<br>
This message is intended solely for the individual(s) and entity(s) addressed. It is confidential and may contain legally privileged information. The use, copying or distribution of this <br>
message or any information it contains, by anyone other than the addressee, is prohibited. If you have received this message in error, please notify postmaster@orica.com. The mailbox address <br>
from which this message has been sent is for business mail only. Mail sent to it may be subject to security scanning and delivery on non-business messages sent to this address may not occur. <br>
Thank you.<br>
***********************************************************************************************************************************************************************************************</font>