Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Unbelievably Obvious Debugging Tip

by radiantmatrix (Parson)
on Dec 15, 2004 at 00:05 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://414905]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found