Without looping over the @list, how can I check to see if $var is found in the list?
Ie:
my @list = qw(frog turtle tadpole); my $var = "turtle"; if ($var =~ m/@list/) {}; # not even close
In reply to without looping, check if $var is found in @list by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |