Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: looking for simple way to check scalar against array

by dug (Chaplain)
on May 19, 2005 at 15:12 UTC ( [id://458654]=note: print w/replies, xml ) Need Help??


in reply to Re: looking for simple way to check scalar against array
in thread looking for simple way to check scalar against array

If the list contains anything with a 4 in it you will get a match, which I don't think is what the OP wants. If you are going to use the regex approach it should probably be anchored on both ends: /^$i$/.

update: Not that you really needed a third person to remind you [grin].

-- Douglas

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-25 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found