 <p>You can set a global Variable or a Command-Line Variable to set (for example) <code>$debug = 1</code>. Then you could specifiy your sub-calls like that:</p> <pre><code>_long_function() unless $debug == 1; </code></pre> <p>or</p> <pre><code>unless ($debug) { ... } </code></pre>