BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
Has anyone an explaination for why I get such different results from running the same piece of code as a one-liner (or in a program) and running it under the debugger?
P:\test>perl -MTime::HiRes=gettimeofday -le"print scalar gettimeofday( +) for 1 .. 10" 1090261997.71904 1090261997.71921 1090261997.71944 1090261997.71951 1090261997.71957 1090261997.71964 1090261997.7197 1090261997.71976 1090261997.71982 1090261997.71989 P:\test>perl -de1 perldb: Must not source insecure rcfile ./perldb.ini. You or the superuser must be the owner, and it must not be writable by anyone but its owner. Loading DB routines from perl5db.pl version 1.25 Editor support available. Enter h or `h h' for help, or `perldoc perldebug' for more help. main::(-e:1): 1 DB<1> use Time::HiRes qw[gettimeofday]; DB<3> print scalar gettimeofday(), $/ for 1 .. 100; 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.89063 1090262293.92188 1090262293.92188 1090262293.92188 1090262293.92188 1090262293.92188 1090262293.92188 1090262293.92188 1090262293.92188 1090262293.92188 1090262293.92188 1090262293.95313 1090262293.95313 1090262293.95313 [SNIP]
I am at a complete loss to understand why the resolution would become so "blocky" under the debugger?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl -de1 weirdness.
by Fletch (Bishop) on Jul 19, 2004 at 18:48 UTC | |
by BrowserUk (Patriarch) on Jul 19, 2004 at 19:09 UTC | |
|
Re: Perl -de1 weirdness. (path)
by tye (Sage) on Jul 19, 2004 at 18:52 UTC | |
by BrowserUk (Patriarch) on Jul 19, 2004 at 19:08 UTC | |
|
Re: Perl -de1 weirdness.
by kvale (Monsignor) on Jul 19, 2004 at 20:37 UTC | |
by BrowserUk (Patriarch) on Jul 19, 2004 at 21:19 UTC | |
by tye (Sage) on Jul 19, 2004 at 21:35 UTC | |
by BrowserUk (Patriarch) on Jul 19, 2004 at 22:01 UTC | |
|
Re: Perl -de1 weirdness.
by dave_the_m (Monsignor) on Jul 19, 2004 at 19:18 UTC | |
|
Re: Perl -de1 weirdness.
by keszler (Priest) on Jul 19, 2004 at 19:24 UTC | |
by BrowserUk (Patriarch) on Jul 19, 2004 at 19:56 UTC |