Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 chilling in the Monastery: (3)
As of 2017-04-28 08:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (519 votes). Check out past polls.