in reply to Re: IO::Tee and write / format
in thread IO::Tee and write / format
sub print_clean_stdout { my $result = shift; $check_description = shift; $check_result = shift; $severity_w = shift; if ( $result eq 'FAIL' ) { $tee->format_write( q/main::FAIL/ ); $~ = 'FAIL'; $failures++; } else { $tee->format_write( q/main::STD/ ); $~ = 'STD'; $successes++; } write; $^A = ''; # we have to mess with the accumulator }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: IO::Tee and write / format
by broomduster (Priest) on Oct 17, 2008 at 19:36 UTC |