in reply to print a hash reference
Just to clarify this part in addition to trippledubs's answer:
It appears to be giving the memory reference to hash, I was expecting ip objects.
The output "Infoblox::DNS::Record::A=HASH(0x55d0d1517aa0)" tells you that it is in fact an object of type Infoblox::DNS::Record::A, and it happens to be implemented as a hash internally, hence the HASH(0x...) part - but normally you shouldn't try to use it as a hash reference, because this would probably break the object's encapsulation. This kind of output is the default behavior when you try to use a Perl object as a string. Some Perl objects support "overloaded stringification", which means that when you try to use them as a string, they will return a useful string, but Infoblox::DNS::Record::A apparently doesn't implement that, which is why you have to use the methods on the object to get its properties.
|
|---|