Lois, there is nothing wrong with reading the DB per se, since the problem lies in $in{'ww'} never getting passed through to sub query (I was calling it sub search earlier ).
Hope that helps some...
Code:
my ($status, @hits) = &query("view");Hope that helps some...