Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Unbelievably Obvious Debugging Tip

by radiantmatrix (Parson)
on Dec 15, 2004 at 00:05 UTC ( #414905=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print STDERR join("\x1E", @list),"\x1E\n";
    
  2. or download this
    sub dbg {
        return unless $DEBUG;
    ...
            print STDERR $str unless $QUIET;
        }
    }
    
  3. or download this
    #!/usr/bin/perl
    use Private::Debug 'dbg';
    ...
    
    dbg("Hello there", "You fool");
    dbg(':DUMP:', "ARGV:", \@ARGV);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2014-12-18 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (58 votes), past polls