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

Re: Neat Debugger tricks

by salva (Abbot)
on Nov 17, 2005 at 10:17 UTC ( #509353=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl5.9.3
    
    ...
    for my $n (0.3, 0, -4, 7, 9) {
      printf "sqrt(%f) = %f\n", $n, my_sqrt($n);
    }
    
  2. or download this
    toledo:~# perl5.9.3 -d /tmp/as.pl
    
    ...
    22
      DB<1> p $n
    -4