Forum Discussion
alex_der_101956
Nimbostratus
Apr 21, 2006get_persistence_record
can someone show me an example of how to use LocalLB::Pool::get_persistence_record in perl?
alex_der_101956
Nimbostratus
Apr 26, 2006Hi Joe,
The problem im having is parsing the output arrays. After trying your example and other methods of accessing the 2D array from the link provided and various books, it always seems to fail at the inner loop.
one example:
$persistence_mode = "PERSIST_MODE_NONE";
$soapResponse = $Pool->get_persistence_record
(
SOAP::Data->name(pool_names => [@pool_list]),
SOAP::Data->name(persistence_modes => [$persistence_mode])
);
&checkResponse($soapResponse);
@PersistenceRecordLists = @{$soapResponse->result};
print "$PersistenceRecordLists\n";
for $i (0 .. $PersistenceRecordLists)
{
$PersistenceRecordList = $PersistenceRecordLists[$i];
print "$PersistenceRecordList\n";
for $j (0 .. ${$PersistenceRecordList}) {
print "element $i $j is $pool_namestenceRecordList->[$j]\n";
}
}
example output:
0
-1
Is there something im missing or doing wrong? Any Ideas/help would be greatly appreciated.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
