in reply to Finding variable context

Use the ref() funtion...
if (ref($array[$i]) eq "ARRAY") { print "It's an array!"; } else { print "Not an array!"; }

Update: Oops, you said in a hash, my bad... here's a better example:
if (ref $hash{$key} eq "ARRAY") { print "It's an array ref!"; } else { print "Not an array ref!"; }

Alan "Hot Pastrami" Bellows
-Sitting calmly with scissors-