Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: regexp match count

by eyepopslikeamosquito (Chancellor)
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 chanting in the Monastery: (6)
As of 2019-10-24 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?