Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Welcome to the Monastery
 
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 about the Monastery: (5)
As of 2014-04-20 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls