Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: regexp match count

by eyepopslikeamosquito (Bishop)
on Oct 09, 2011 at 06:58 UTC ( #930431=note: print w/replies, xml ) Need Help??


in reply to regexp match count

my $count =()= ($str =~ /ban/g);
This is the famous =()= goatse "secret operator", nicely explained here (along with Perl's other "secret operators").

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2020-07-13 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?