. . . use pm::search; my $rv = "content-type: text/html\n\n"; my $dbh = sql_connect("ns.db"); . . . my $st = "eye_clr"; # field to search for my $sv = 1; # value to search for $rv .= "Testing search_item
\n"; my @users = get_users($dbh, 1); # gets JUST a list of user ID's - which uses the above "sql_execute" subroutine and works perfectly! $rv .= "searching " . @users . " users: "; foreach my $uid (@users) { $rv .= "$uid, "; } $rv =~ s/, $/
\n/; # replace the last comma and space with a
and a new line $rv .= ""; # the following should return JUST a hash reference! but nooooo....it returns convoluted results which just baffle me my @results = search_item($dbh, \@users, $st, $sv) . "\n"; $rv .= "Number of array elements: " . @results . "
\n"; foreach my $result (@results) { $rv .= "$result
\n"; } . . . print $rv; exit 1;