in reply to Variable Selection

Check perldata why your hash initialization is broken. check perlsyn for last. Check perlop for the meaning of '=' and '==' and then think of totally leaving the @array out of your code and directly looking for $where in the %hash, via exists. HTH

--
http://fruiture.de