Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Count number of occurrences of a substr

by FunkyMonk (Canon)
on Sep 30, 2011 at 22:18 UTC ( #928945=note: print w/replies, xml ) Need Help??


in reply to Re: Count number of occurrences of a substr
in thread Count number of occurrences of a substr

$n = () = $str =~ /this/g;
=()= is usually known as the "goatse" operator. It's one of perl's secret operators

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-02-27 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (378 votes). Check out past polls.