Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Counting Substrings in Strings

by pschoonveld (Pilgrim)
on Dec 02, 1999 at 12:03 UTC ( #1028=note: print w/replies, xml ) Need Help??


in reply to Counting Substrings in Strings

$count = $string =~ tr/x/x/; Will make $count = num of x's in $string.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1028]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-01-19 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.