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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2016-12-04 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (61 votes). Check out past polls.