in reply to color STERR red?

PerlIO::via::ANSIColor will do it for you.
#!/usr/bin/perl use strict; use warnings; use PerlIO::via::ANSIColor color => 'red'; binmode STDERR, ':via(ANSIColor)'; warn "This output's colored\n";

Replies are listed 'Best First'.
Re^2: color STERR red?
by Anonymous Monk on Jan 08, 2024 at 21:41 UTC
    This can't be used if you're also using Capture::Tiny. It will fail with "Couldn't seek on capture handle for stderr".