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