steady12345
Technical User
Greetings all,
I am working with a perl script and a module called IControl that gives me information about a Load Balancer
When I run my script and do a get_list() the value returned to $peer is ARRAY(0x2d7208c)
I don't know the next step for reading from that array location and was wondering if someone could guide me in the right direction
I am working with a perl script and a module called IControl that gives me information about a Load Balancer
When I run my script and do a get_list() the value returned to $peer is ARRAY(0x2d7208c)
I don't know the next step for reading from that array location and was wondering if someone could guide me in the right direction
Code:
#!/usr/bin/perl
BEGIN { $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0 }
use SOAP::Lite;
use iControlTypeCast;
use MIME::Base64;
use myAuth ();
use vars qw($sUID $sPWD);
*sUID = \$myAuth::sUID;
*sPWD = \$myAuth::sPWD;
print "BEGIN TEST\n";
sub SOAP::Transport::HTTP::Client::get_basic_credentials {
print "In SOAP\n";
return "$sUID" => "$sPWD";
}
$SystemInfo = SOAP::Lite
-> uri('urn:iControl:LocalLB/Pool')
-> proxy("[URL unfurl="true"]https://myaddress.com/iControl/iControlPortal.cgi");[/URL]
$peeraddress = $SystemInfo->get_list();
$peer = $peeraddress->result;
print $peer;
print "\n";