Subject: | asset data not exportable |
Date: | Thu, 11 Dec 2008 05:09:29 +0100 |
To: | bug-WebService-EveOnline [...] rt.cpan.org |
From: | "Christian Walde" <mithaldu [...] yahoo.de> |
Hello,
When trying to access the assets of a character the following line complains about $data not being a hashref:
$data->{_status} ||= "ok";
This is caused by this earlier line:
} elsif ($command eq "assets") {
$data = $pre->{result}->{rowset}->{row};
Due to the XML structure it needs to be changed in this to actually work:
} elsif ($command eq "assets") {
$data = $pre->{result}->{rowset};
I'd also suggest using XML::Bare like this:
use XML::Bare;
my $xml = new XML::Bare( text => $xml_content );
my $root = $xml->simple();
It has the same output as XML::Simple and seems to be a good bit faster.
Lastly, thanks for your work on this. :)
--
With regards,
Christian Walde
As too many people send me top- and fully-quoted
emails, here is a guide on how to be considerate
when sending emails to other people:
http://www.xs4all.nl/~hanb/documents/quotingguide.html
--
Show quoted text
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de