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.
http://search.cpan.org/~phred
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.
perl(1).
To install String::Strip, copy and paste the appropriate command in to your terminal.
cpanm
cpanm String::Strip
CPAN shell
perl -MCPAN -e shell install String::Strip
For more information on module installation, please visit the detailed CPAN module installation guide.