When entering data via the standard input command, the user must hit enter to proceed, which means a n is also in the string. chomp is needed to remove it.
Feel free to correct Mark.
------------------ I wish I were a Canuck All they have to do is drink beer, play hockey, and say "Eh"
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.