Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: regexp match count

by eyepopslikeamosquito (Archbishop)
on Oct 09, 2011 at 06:58 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://930431]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-29 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found