in reply to outputs followed by each other
Hi, the value of your variables includes the new line character that was added when the user hit 'Enter'.
It's a good idea to examine variable values enclosed in delimiters so you can spot any invisible characters, like this: print ">$var<";
You can remove the newline character with chomp.
Hope this helps!
|
|---|