Truth be told, when you want to remove the newline character which is always implemented to the end of STDIN, you should use chomp, which only removes the newline char. Chop removes the last char,...