printf "%vd", $my_str; --output:-- 49.50.51.100.111.103.10 #6 ascii chars in '123dog', but outputs 7 codes. #Checking an ascii chart for the code 10: #line feed. Ah hah, I forgot to chomp() #the string!