Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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?
[karlgoethebier]: calls the spanish inquisition

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-06-25 21:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (571 votes). Check out past polls.