in reply to Entering external data
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.
-----
|
|---|