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?
Please help :)
Thanks in advance!
A*C
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
Back to
Seekers of Perl Wisdom