Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: More while issuesby Anonymous Monk |
on Mar 03, 2011 at 21:09 UTC ( [id://891306]=note: print w/replies, xml ) | Need Help?? |
$string =~ tr/H// returns the number of times the character 'H' occurs in a string. $string =~ tr/G//d; removes all occurances of the character 'G'. See tr/SEARCHLIST/REPLACEMENTLIST/cds in perldoc perlop.
In Section
Seekers of Perl Wisdom
|
|