All,
I wish to remove trailing spaces..
#!/usr/bin/perl -w
use strict ;
my $line ;
while (<>) {
chomp $_ ;
$line =~ s/\s+$//; # remove trailing spaces
print " $line \n";
}
My output is equal number of blank lines..
Where is my error?
Frank
- Re: Trailing spaces ... aka rtrim(); Frank Newland
- Re: Trailing spaces ... aka rtrim(); Brett W. McCoy
- Re: Trailing spaces ... aka rtrim(); Peter Cline
- Re: Trailing spaces ... aka rtrim(); Jos I. Boumans
