Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

sky (1411)

  (email not shown publicly)

sky on IRC

Journal of sky (1411)

Wednesday July 18, 2001
05:18 AM

Ok, debugging error.

[ #444 ]
I decided to start hacking some POE, so I fired up POE-0.15 on perl 5.7.2, it broke, test cases wouldn't pass. So I decided to take a look and got stumped prety fast.

sub ST_TIME () { 5 }
print ST_TIME if(ST_TIME == 5);

Now, what would you expect this to print, '5' ofcourse, but no! It prints 10! Appernetly something changes the value of the constant, that seems to be a ASLICE that is mucking up the error. Now AMS is busy running huge traces to find the bug, and I am helping but I don't know what use I am.

I also found a bug, Time::HiRes::sleep; fails with no arguments, this is clearly not a clean drop-in replacement for perls builtin sleep;