http://www.perlmonks.org?node_id=697085


in reply to how to output special characters?

If you want to print a control character, you need to escape it with "\c". So:
print "Here is ^A: \cA Here is ^B: \cB";
Of course, as stated above, you won't be able to see those control characters since they're invisible.

stephen