hi, can anyone tell me how to count the number of times a specify character occurred in a string. for example,
$string = 'APPLE';
'P's occurred twice in this string.
i need to count how many time the 'P's occurred in this string, $string, by using perl programming.
how can i do that?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks