$string =~ s/ +$//;
Allen
In reply to Re: Trailing spaces by Anonymous Monk in thread Trailing spaces by TeKk9