in reply to Re^2: how to output special characters?
in thread how to output special characters?

"^A" is a *representation* of a *non-printable* character used by more and other programs. When you print the ^A character in Perl, it prints that character as you requested, not the two characters "^" and "A" like more does. If you want to print "^" and "A" like more does, feel free to format the output as you desire.

{ my %map = map { $_ => chr(0x40 + $_) } 0x00..0x1F; my ($re) = map qr/[$_]/, join '', map quotemeta, keys %map; sub format_non_printables { my ($text) = @_; $text =~ s/($re)/$map{$1}/g; return $text; } }

You could tie STDOUT to make this transparent.