in reply to TRIM in Perl?
There isn't a built in trim function but japhy wrote a nice one: trim() magic
You will find a discussion on this in perlfaq4 How do I strip blank space from the beginning/end of a string?.
-- John.