SPUG: Last night's meeting

Creede Lambard creede at penguinsinthenight.com
Wed Mar 17 14:35:16 CST 2004


I often include lines like this into my code:

    sub DEBUG  { return $ENV{'DEBUG_MY_SCRIPT'}; }

    if (DEBUG) { print "Debugging is on\n";}

That way turning debugging on or off is just a matter of setting an
environment variable.


--
===================================================================
                               * .~. (   : Creede Lambard         :
 Never rush a miracle man.    . / V \  . :------------------------:
 You get lousy miracles.       /(   )\   : creede at              :
--------------------------------^^-^^----:     penguinsinthenight :  
 Linux. Reliable and free. Pick any two. :         dot com        :
===================================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/spug-list/attachments/20040317/89f99474/attachment.bin


More information about the spug-list mailing list