Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Defensive Programming and Audit Trails

by trs80 (Priest)
on Aug 06, 2002 at 15:37 UTC ( #188063=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    # OO method for error to STDERR uisng 'warn'
    ...
            warn "$error\n";
        }
    }
    
  2. or download this
    $object->error_to_log("I made it this far, I can't believe it");
    
  3. or download this
    $object->error_to_log("Date: $date Variable: $var",1);
    
  4. or download this
    
    # $debug is a global variable
    ...
            warn "$error\n";
        }
    }
    
  5. or download this
    &error_to_log("Error message");
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2014-09-21 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls