in reply to Re: What is the difference?
in thread What is the difference?
which must be:$line += tr/ \t\r\n/c;
After fixing that, the sript works cool ;-)$line += tr/ \t\r\n//c;
Now I think that tr (in Perl or in shell) is a better way to get rid of unwanted characters, am I wrong?$ tr [:space:] -d <ccount.pl | wc 0 1 69
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: What is the difference?
by dakkar (Hermit) on Apr 08, 2003 at 18:02 UTC |