Subject: | printf() not captured |
When using IO::Capture::Stdout you're required to use regular print() statements because printf isn't available.
Sample Script:
---
use strict;
use warnings;
use IO::Capture::Stdout;
my $capture = IO::Capture::Stdout->new;
$capture->start;
printf( 'Test' );
$capture->stop;
print $capture->read;
---
Error Message:
---
Can't locate object method "PRINTF" via package "IO::Capture::Tie_STDx" at iocap.pl line 9.
---
-Brian