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.


In reply to Re: print a hash reference by haukex
in thread print a hash reference by vedas

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.