Is it possible to pass a hash into a subroutine to be used as a local
variable? I'm trying to do this:
($rows, %results) = &Select($mytable, $where_f1, $compare1, $where_v1,
@quick_check, %field_values);
sub Select {
my($db_table, $where_field, $comparison, $where_value,@fieldlist,
%values) = @_;
.....
return $rc, %table;
}
and it's not working. If I remove %field_values and the corresponfing
reference, %values and use %field_values as a global varaible, it works
fine. I'm able to return a hash no problem, but sending one doesn't
seem to work!
Any help appreciated.
Thanks,
Rory
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]