I think you are looking for chomp ..
From the perlfunc docs relating to chomp.. "It's often used to remove the newline from the end of an input record ..."
Update: Here is a Tutorial about Basic Input and Output which might help.
-----In reply to Re: Entering external data
by AcidHawk
in thread Entering external data
by moked
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |