Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Compare all array values without a loopby Anonymous Monk |
on Oct 19, 2004 at 14:15 UTC ( [id://400532]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
if I have $foobar='D'; @array=('A', 'B', 'C', 'D'); is there a way I can compare $foobar to every @array value in a single if statement? without a loop? for example...
I dont think that works, but it might help describe what Im saying better... thanks
Back to
Seekers of Perl Wisdom
|
|