At 12:44 30.10.2002 -0500, Stephens, Wes (N-Sybase) wrote:
Is there a string manipulation function to automatically trim leading and trailing whitespaces?
No, but do it with regex:
$string = " cat and dog "; # trim beginning ws $string =~ s/^\s+//; # trim ending ws $string =~ s/\s+$//; Greetings from Bavaria, Germany Horshack -- Richard Lippmann, Findus Internet-OPAC Findus, see http://www.hultsfred.de Private, see http://lena.franken.de _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs