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


in reply to Terminal Client

In the shell, try: perl -e 'print "\041\n";'

Note that the char code is octal (you get a '!'). So don't write "02", write "\02". Since it is octal, if you want a cr, don't write "\013", write "\015"