# .. your modules use XML::Simple; use Data::Dumper; # make request and get response; # ... my $data = XMLin($response->as_string); # the following just to show you the structure. print Dumper($data);