On Jun 1, Dermot Paikkos said:
s/\s*$//; # delete all whitespace at the end of the string
Except that it's awfully silly-looking. I'd *at least* do s/\s+$//; which is monumentally faster, although not perfect. -- Jeff "japhy" Pinyan % How can we ever be the sold short or RPI Acacia Brother #734 % the cheated, we who for every service http://japhy.perlmonk.org/ % have long ago been overpaid? http://www.perlmonks.org/ % -- Meister Eckhart -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>