if($foobar eq @array[0 to 3]{ #yadda yadda } [download]
In reply to Compare all array values without a loop by Anonymous Monk