RE: [Perl-unix-users] trim trailing spaces

2002-10-19 Thread Vitaly Sinitsin
Trim leading and trailing whitespace from a string: $string =~ s/^\s*(.*?)\s*$/$1/; -Original Message- From: [EMAIL PROTECTED] [mailto:perl-unix-users-admin@;listserv.ActiveState.com]On Behalf Of Terry Vaughn Sent: Friday, October 18, 2002 9:03 PM To: [EMAIL PROTECTED] Subject: [Perl-unix

RE: [Perl-unix-users] trim trailing spaces

2002-10-18 Thread BWilson
$var =~ s/\s+$//; -Original Message- From: Terry Vaughn [mailto:tvaughn@;dakotagrowers.com] Sent: Friday, October 18, 2002 3:03 PM To: [EMAIL PROTECTED] Subject: [Perl-unix-users] trim trailing spaces Hello. What's the quickest way to trim trailing spaces from a variable ?? Terry ___