Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the Devel-Trace CPAN distribution.

Report information
The Basics
Id: 22562
Status: new
Priority: 0/
Queue: Devel-Trace

Owner: Nobody in particular
Requestors: at [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: [PATCH] autoflush stdout
Date: Wed, 25 Oct 2006 12:56:32 +0400
To: bug-devel-trace [...]
From: Alexey Tourbin <at [...]>
Download (untitled) / with headers
text/plain 568b
The trace is printed to STDERR. When used with pager, STDOUT is buffered and falls behind STDERR. The quick fix is to set $|, which is what I propose. (The better fix would be to set line-buffered mode, to avoid mixing the lines.) --- | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ b/ index 7b758a6..66c6743 100644 --- a/ +++ b/ @@ -31,6 +31,7 @@ sub trace { my $arg = shift; $arg = $tracearg{$arg} while exists $tracearg{$arg}; $TRACE = $arg; + $| = 1 if $TRACE; } 1; -- 1.4.3.GIT

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to