oops....for one you do
$HASH{$key} =~ s/\s$//;
-----Original Message-----
From: Shishir K. Singh
Sent: Tuesday, June 11, 2002 4:31 PM
To: Alaric Joseph Hammell; [EMAIL PROTECTED]
Subject: RE: chop off 1 white space?
Is it only one Trailing white space or any trailing white space....??
If any trailing white space , then you can do
$HASH{$key} =~ s/\s+$//;
If One ...
$HASH{$key} =~ s/\s+$//;
And then you can compare
if ($HASH{$key} eq $myVariable) {
}
-----Original Message-----
From: Alaric Joseph Hammell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 4:27 PM
To: [EMAIL PROTECTED]
Subject: chop off 1 white space?
How would I get rid of one trailing white space character in
$HASH{$key} and reassign the result OR how would I match a variable with 1
trailing white space to a variable that has no trailing white space
character?
Thanks,
Al
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]