On Thursday, Nov 20, 2003, at 11:51 US/Pacific, Eric Walker wrote:


Well see the key is I am passing a value to a sub this is a pointer and
I am having trouble getting access to the hash with in the subroutine
$Rules is a pointer given to me by a prewritten Database function.


&sub(\$Rules);


do you mean something like

#------------------------
#
sub default_query_hash($$)
{
        my ($q,$r) = @_;

        while( my ($k,$v) = each %$r){
                $q->{$k} = ($v)? $v : '';
        }

$q;

} # end of default_query_hash($$)


which I call with


default_query_hash($hash_ref_one, $hash_ref_two);

If you want to deference a hash, then you would want
to call it with say

default_query_hash(\%hash_a,\%hash_b);



ciao
drieux

---


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to