Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Word Count and Match

by eyepopslikeamosquito (Archbishop)
on Jan 07, 2021 at 21:37 UTC ( [id://11126566]=note: print w/replies, xml ) Need Help??


in reply to Word Count and Match

One more thing, I noticed you're using the /o modifier here:

if($word=~/($wordcnt)/io){
You should remove it - see regex "o" modifier especially tye's response and Aristotle's response: Never use /o

Updated: Added Aristotle's response

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found