From your first answer, it's not immediately apparent to those of us not familiar with the fact that the tr operator that it returns the number of matched characters.
For those of us who read replies in the hopes of learning something, extra information like this would be very useful...especially, I think, in a case such as your first reply here.
Sure, I spent half an hour (amidst doing other things) reading the perldoc -f tr and then perldoc perlop manpages...And I'm not likely to forget anytime soon that tr returns the number of characters matched...But somehow, the reply of tr/a-zA-Z0-9// in toto I find wanting...
In reply to Re: Re: Character Count
by Yendor
in thread Character Count
by natty_dread
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |