Re: Reference to an array from within a hash....how to de-ref.

2003-06-02 Thread Rob Anderson
> the life of me, I cannot get there. I have tried... > >foreach $key ( keys %$hostsref ) { >print ("Inserting $key into Database\n"); Try this, the prints are to make it easier to understand, hopefully :-) # print '$hostsref = ' . $hostsref . "\n";# your or

RE: Reference to an array from within a hash....how to de-ref.

2003-06-02 Thread Charles K. Clarkson
Hamish Whittal <[EMAIL PROTECTED]> wrote: : Now I want to get at the arrays inside the IP address : keysand for the life of me, I cannot get there. I : have tried... : : foreach $key ( keys %$hostsref ) { : print ("Inserting $key into Database\n"); : @arr = @{ $hostsref{$key} };