Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: matching whole words only

by toolic (Bishop)
on Feb 26, 2015 at 21:48 UTC ( [id://1117996]=note: print w/replies, xml ) Need Help??


in reply to matching whole words only

I misread the question. Nothing to see here.

Use eq instead of a regex. Change:
if (@events = grep /$event/, @{ $region_of_state{$region_of_state}}) {

to:

if (@events = grep { $_ eq $event } @{ $region_of_state{$region_of_sta +te} }) {

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-20 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found