http://qs321.pair.com?node_id=458654


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