http://www.perlmonks.org?node_id=220736

ACJavascript has asked for the wisdom of the Perl Monks concerning the following question:

Hi perl monks :)

Here is my question ,, I need to search through an Array to
see if somthing matchs one of the elements in the Array.
This is what i have so far whats wrong?

@AllowedRanks("Recruit","General","Captian","Civilian","Airman"); $found=0; foreach $i (@AllowedRanks){ if("$MemberCall" eq "$i"){ $found="1"; } } if($found==1){ &Welcome; }else{ &NotWelcome; }


Please help :)
Thanks in advance!

A*C