Re: how to test if an element belongs to an array or hash



Thanks.

Another question,
Is there a way to find the keyvals from their values without using
iteration. For instance;

$set{"apple"}="fruit";$set{"pear"}="fruit";$set{"banana"}="fruit";$set{"beef"}="meal";

I need to find "apple","pear" etc from "fruit".
Thanks!

.