it prints nothing, even though the name is there. however, this works:next unless ( grep( /$name/, @names )); print "$name isnt in the array so continue";
thx for help :)if ( grep( /$name/, @names )) { print "name is in the array"; } #but this doesnt suit my needs.
In reply to next unless - doesnt work? by sweepy838
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |