perlquestion
Anonymous Monk
if I have<br>
$foobar='D';<br>
@array=('A', 'B', 'C', 'D');<br>
<br>
is there a way I can compare $foobar to every @array value in a single if statement? without a loop?<br>
<br>
for example... <br>
<br><code>
if($foobar eq @array[0 to 3]{
#yadda yadda
}</code>
<br>
I dont think that works, but it might help describe what Im saying better... thanks<br>
4