Characters with codes in the range 0 .. 255 can be expressed in several ways. In this example, all type the character A :
print chr(65); print "\101"; # octal notation print "\x41"; # hexidecimal notation (and hexadecimal notation) printf "%c",65;
or for your specific problem:
print chr(3); print "\003"; print "\3"; print "\x03";
source share