Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://509353]
help
Chatterbox?
[Corion]: Also see Config::V, which is less of that hackery, or that hackery hidden in a module ;)
[1nickt]: The problem was with Perlbrew
[Corion]: Whoops - Config::Perl::V
[1nickt]: I found that when using Perlbrew as recommended, with cpanminus in the system perl lib, such tests were failing to detect the data about the perl that was the install destination.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2017-10-18 15:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (249 votes). Check out past polls.

    Notices?