Assuming you mean $_->[1] (wrapping code in <code>...</code> tags preserves things like []).
It works for me! Perhaps you should show exactly what you tried and how exactly it "didn't work".
In reply to Re^5: check if an element exists in array
by FunkyMonk
in thread check if an element exists in array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |