Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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.


Comment on Re: Counting Substrings in Strings

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1028]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-12-25 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls