Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Debug code out of production systems

by rcaputo (Chaplain)
on Jan 25, 2004 at 17:33 UTC ( #323984=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      use constant DEBUG => 0;
      if (DEBUG) {
    ...
          " when DEBUG is true.\n";
        );
      }
    
  2. or download this
      macro num_max (x,y) {
        ((x) > (y) ? (x) : (y))
      }
    
  3. or download this
      print "You owe: \$", {% num_max $total-$paid, 0 %}, "\n";
    
  4. or download this
      unless ($expression) {  # include
        ... lines of code ...
    ...
      } else {                # include
        ... lines of code ...
      }                       # include
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://323984]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2014-07-26 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls