I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-11-20 04:19:54-08 by noah in response to 11776
Re: Returning array references with only one entry

AFAIK, there's no way to force this; indeed, SOAP::WSDL::Deserializer::Hash explicitly states that this is the behavior.

When I've encountered this issue, I've done something like the following:

my $list = ref( $response->{'List'} ) eq 'ARRAY' ? $response->{'List'} : [$response->{'List'}];

This ensures I always have an arrayref with which to work.

--noah
Direct Responses: 11785 | Write a response