Darren123 has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Object Access Issue
by tobyink (Canon) on Mar 19, 2014 at 10:08 UTC | |
|
Re: Object Access Issue
by robby_dobby (Hermit) on Mar 19, 2014 at 09:29 UTC | |
|
Re: Object Access Issue
by Bloodnok (Vicar) on Mar 19, 2014 at 11:21 UTC | |
by Darren123 (Initiate) on Mar 19, 2014 at 14:22 UTC |