Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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 In reply to Re^2: looking for simple way to check scalar against array
by dug
|
|