true, most probably cause of it's magic behavior as handle-method. Though looking into IO::Handle might help.
Anyway, I don't know what your prints are supposed to do, but before relying on source-filtering I'd rather rename them like dbout or out or say.
The following code breaks on each output, simply uncommenting use feature disables this behavior.
#use feature 'say'; sub say { print @_,"\n"; no warnings 'once'; $DB::single=1; } say $x++; say $x++; say $x++; say $x++; say $x++;
> ps. thanks for the link to obsidianrook, I always enjoy those presentations!
Well, better thank doom directly! =)
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re^3: Make debugger break on source lines matching a pattern
by LanX
in thread Make debugger break on source lines matching a pattern
by Yary
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |