I've a feeling that I have a basic misunderstanding here:
First I create the following (actually part of an object, but this
is just a minimal test program:
$db = {};
$db->{'ConnectNameIndex'} = {};
print "\ndb> ";
print ref $db;
print "\nStored pointer> ";
print ref ($db->{'HostNameIndex'});
print "\n";
When I print the first item, I get what I expect:
db> HASH
But the second item does not do what I expect - to me it looks
identical to the first case except that I've shoved the pointer
to a hash into a hash:
Use of uninitialized value at test2 line 25.
Stored pointer>
BTW, line 25 in my file was
print ref ($db->{'HostNameIndex'});
Can someone explain to me where I've gone off into hyperspace?
First I create the following (actually part of an object, but this
is just a minimal test program:
$db = {};
$db->{'ConnectNameIndex'} = {};
print "\ndb> ";
print ref $db;
print "\nStored pointer> ";
print ref ($db->{'HostNameIndex'});
print "\n";
When I print the first item, I get what I expect:
db> HASH
But the second item does not do what I expect - to me it looks
identical to the first case except that I've shoved the pointer
to a hash into a hash:
Use of uninitialized value at test2 line 25.
Stored pointer>
BTW, line 25 in my file was
print ref ($db->{'HostNameIndex'});
Can someone explain to me where I've gone off into hyperspace?