Hi David. if you have an variable like this
$mystring = "hello this is a string "; $chop($mystring); the chop command is what you are looking for I think. Just try it out. Heiko >>-----Ursprüngliche Nachricht----- >>Von: David vd Geer Inhuur tbv IPlib >>[mailto:[EMAIL PROTECTED]] >>Gesendet: Montag, 27. Mai 2002 14:49 >>An: [EMAIL PROTECTED] >>Betreff: Remove 1 or more whitespaces at the end of $_ >> >> >> >>Hi, >> >>I know how to delete 1 or more whitespaces at in a line using : >> >>while <IN> { >> s/\s+//g; >>} >>close IN; >> >>#----------------------------- >> >>But How do I specific delete 1 or more whitespaces at the end of >>the line ? >>using : >> >>while <IN> { >> s/$\s+//g; >>} >>close IN; >> >>Didn't work. Does anyone have the solution for me ?? >> >>Regs David >> >>-- >>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]