Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 contemplating the Monastery: (10)
As of 2015-07-05 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls