in reply to Re: Getting the count of a particular alphabet using subroutinein thread Getting the count of a particular alphabet using subroutine
And another one way
$string='Put your text'; $count++ while($string=~ m{t}g); [download]