in reply to TRIM in Perl?


That removes the leading spaces but not the trailing spaces.

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.