Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Debug code out of production systems

by liz (Monsignor)
on Jan 24, 2004 at 22:08 UTC ( #323875=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    export DEBUGGING=1
    perl -Mbegin yourscript.pl
    
  2. or download this
    perl -Mbegin=VERBOSE yourscript.pl
    
  3. or download this
    perl -Mbegin=all yourscript.pl
    
  4. or download this
    ======= yourscript.pl ===================
    
    ...
    # code that's always compiled and executed
    
    ========================================
    
  5. or download this
    my $foo = 2;
    
    ...
    =cut
    
    warn "normal foo = $foo\n";
    
  6. or download this
    my $foo = 2;
    
    ...
    }
    
    warn "normal foo = $foo\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://323875]
Approved by BazB
Front-paged by gmax
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-12-20 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (96 votes), past polls