use Test::More; # both of the following are too late for Test::More # because it has already duplicated STDOUT, STDERR binmode(STDOUT, ":utf8"); binmode(STDERR, ":utf8"): my $tb = Test::More->builder; $tb->failure_output(\*STDERR); $tb->todo_output(\*STDERR); $tb->output(\*STDOUT);