also perlfaq4 should have thisy @array = ( 9, 2, 23, 24, 5, 6 ); my $scalar = 5; print "Got it\n" if grep /^$scalar$/, @array;
-- Casey
In reply to Re: Comparing Scalars and Arrays
by cwest
in thread Comparing Scalars and Arrays
by zdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |