Subject: | does not default to HTML |
This behavior:
if (-t *STDERR) {
require Carp::Always::Color::Term;
}
else {
require Carp::Always::Color::HTML;
}
results in ugly HTML code like this:
% perl script.pl 2>&1 | less
<span style="color:#800">Died</span> at ...
... called at ...
I think HTML output should only be used if we're detecting outputing to
browser, e.g. through $ENV{GATEWAY_INTERFACE} or some such.
And also ideally there should be an option to force one of the
formatting.