Hello,

I'm writing some code that interacts with a F5 BigIP load balancer using the BigIP::iControl Perl module.

However the .pm file available is very out of date compared to the API now available so I am having to manually update the .pm with the additional functionality I need.

I've used Perl for some time now, but never done anything like this, and I am having some issue with accessing the objects that are being returned to me.

The context of this might be irrelevant, but I wanted to give some background.

I am being given the following object, but I cannot work out how I can access the values inside the second bless:

$VAR1 = bless( [ bless( { 'availability_status' => 'AVAILABILITY_STATU +S_RED', 'status_description' => 'Pool member has bee +n marked down by a monitor', 'enabled_status' => 'ENABLED_STATUS_ENABLED' }, 'LocalLB::ObjectStatus' ), bless( { 'availability_status' => 'AVAILABILITY_STATU +S_RED', 'status_description' => 'Pool member has bee +n marked down by a monitor', 'enabled_status' => 'ENABLED_STATUS_ENABLED' }, 'LocalLB::ObjectStatus' ) ], 'LocalLB::ObjectStatus[]' );

It looks a little odd to me as I was not expecting to have a bless inside another bless object.

Here is the API and Method in question https://devcentral.f5.com/wiki/iControl.LocalLB__Pool__get_member_object_status.ashx

Any help with this would be appreciated, let me know if you would like more information.

Thanks,

Darren


In reply to Object Access Issue by Darren123

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.