in reply to Re: What is the difference?
in thread What is the difference?
Thanks for enlightening me! ;-)
I prefer your second example. The only problem with that example is that you've forgotten one single slash character at the end of tr:
I also realized that I can handle the situation using the command line:
P.S.: If Thelonious S. Monk programmed (in any language) woe to the ones who could maintain his code ;-)
which must be:$line += tr/ \t\r\n/c;
After fixing that, the sript works cool ;-)$line += tr/ \t\r\n//c;
I also realized that I can handle the situation using the command line:
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
P.S.: If Thelonious S. Monk programmed (in any language) woe to the ones who could maintain his code ;-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: What is the difference?
by dakkar (Hermit) on Apr 08, 2003 at 18:02 UTC |
In Section
Seekers of Perl Wisdom