Try chomp.
In reply to Re: Unsuccessful and Uninitialized Value by bobf in thread Unsuccessful and Uninitialized Value by Anonymous Monk