\n are converted into their "real"
printable forms.
But how do you perform the reverse operation, say taking a literal tab
and printing "\t"? The Perl Compiler suite, the
B modules, handily contains such a function:
use B;
print B::cstring("\tWow it works!\n");
produces, predictably enough:
"\tWow it works!\n"