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!
In reply to Re: outputs followed by each other
by 1nickt
in thread outputs followed by each other
by busyvish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |