David Vd Geer Inhuur Tbv Iplib wrote: > > Hi, Hello,
> 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 ?? This is a Frequently Asked Question that is included in the FAQs that come with Perl. perldoc -q space Found in /usr/lib/perl5/5.6.0/pod/perlfaq4.pod How do I strip blank space from the beginning/end of a string? John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]