<?xml version="1.0" encoding="windows-1252"?>
<node id="729233" title="Re^2: Code Maintainability" created="2008-12-09 13:30:07" updated="2008-12-09 13:30:07">
<type id="11">
note</type>
<author id="696098">
JadeNB</author>
<data>
<field name="doctext">
&lt;code&gt;
if ($DEBUG) {
    print STDERR "Debug: some value";
    # some tempory line to debug our debuger ...
    # some other temp line ...
}
&lt;/code&gt;
I think that Perlers have a (probably appropriate) inclination against &lt;c&gt;do&lt;/c&gt; blocks; but of course one can (as [id://728210|jkva] points out below) have the multi-line cake and eat it too (or something):
&lt;code&gt;
do {
     print STDERR "Debug:  some value";
     # some temporary line
     # some other temporary line
} if $DEBUG;
&lt;/code&gt;
Of course, a trailing modifier after 17 lines of code isn't going to do anything for readability; but I think that &lt;code&gt;do this; that if DEBUG&lt;/code&gt; is still reasonably English-like.  As an added bonus, it's easy to transform a &lt;c&gt;do&lt;/c&gt;-with-trailing-&lt;c&gt;if&lt;/c&gt; to a leading &lt;c&gt;if&lt;/c&gt; when the block gets too big and readability suffers.</field>
<field name="root_node">
727817</field>
<field name="parent_node">
728019</field>
</data>
</node>
