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} };

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

2003-06-02 Thread Hamish Whittal
Hi People, Anyone can help me out. I have a datastructure that looks like this: $hostsref = { '10.15.110.1' => [ '10_15_110_1', 'public', '.1.3.6.1.4.1.9.1.209', '2