in reply to Changing a loop based on the nature of a reference

Why not pretend that your returned hash is actually a list of 1 hash.
i.e
my @myarray; push @myarray, @{$content->{Addresses}{ArrayOfAddressResponse}{Address +Response}}; foreach my $response ( @myarray ) { do stuff... }

I think this might work. You may even be able to directly reference without the push.
John

Replies are listed 'Best First'.
Re^2: Changing a loop based on the nature of a reference
by rastoboy (Monk) on Nov 05, 2009 at 07:47 UTC
    Your Mother: On the money, yes, XML::Simple. And I think that is likely the best way to fix it *this* time--thanks! I also like your terniary method. Mostly because I look for any opportunity to use the terniary operator :-) Nah but actually that seems pretty nice. :-) Thanks to all!