String::Strip - Perl extension for fast, commonly used, string operations
use String::Strip; ... StripLTSpace($a); StripTSpace($a); StripLSpace($a); StripSpace($a);
StripLTSpace - Removes Leading and Trailing spaces from given string
StripTSpace - Removes Trailing spaces from given string
StripLSpace - Removes Leading spaces from given string
StripSpace - Removes all spaces from given string
I do these things often, and these routines tend to be about 35% faster than the corresponding regex methods.
Brent B. Powers (B2Pi), Powers@B2Pi.com
Copyright(c) 1999,2000 Brent B. Powers. All rights reserved. This program is free software, you may redistribute it and/or modify it under the same terms as Perl itself.