![]() |
|
No such thing as a small change | |
PerlMonks |
Re^2: looking for simple way to check scalar against arrayby dug (Chaplain) |
on May 19, 2005 at 15:12 UTC ( #458654=note: 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 Section
Seekers of Perl Wisdom
|
|