Specifications

Appendix C: Using Perl SDK
6. Insert the following code into the script to log out:
$client->logout();
7. Save the searchMemory.pl file and run it using perl searchMemory.pl. The
result should look something like the following:
ryankruse$ ./searchExample.pl
512MB Sarasota
768MB Jacksonville
256MB Natchitoches Parish
768MB Apalachicola
256MB Inx Lake
512MB Reunion Arena
512MB Ubuntu 64 bit
256MB Johnson Space Center
256MB Insta-Gator Ranch
768MB Clearwater
512MB Dixie Landing
512MB Lafayette
512MB Odessa
512MB River Ranch
Scripting tips
Whenever you receive a response from a Hyper9::Client call, you can place it
directly into an array or a simple scalar, depending on what the web service call
sends in its response.
Accepting a response into a scalar:
my $response = $client->methodThatReturnsSingleThing();
Accepting a response into an array:
my @response = $client->methodThatReturnsMultipleThings();
If you are not sure of the structure of the response variable, use the Data::Dumper
module in Perl for an exhaustive printout of the data structure. The Data::Dumper
is one of the most valuable modules when using the Hyper9::Client so use it often
while developing your scripts:
use Data::Dumper; print Dumper(@response);
Using the provided example
searchExample.pl
308