in reply to SOAP::Deserializer problem
The 'use of uninitialized value' in your output are warnings: the "command" tagset in your source XML is empty, so the Deserializer properly sets the values to undef. When you try to print an undef value, and you have warnings enabled, you get that message.
Try this pattern for your print statements:
print "got 'command' subitem $i '", (defined $subitem->name() ? $subitem->name() : '<<undefined>>') , "'\n";
The second line of that basically says "if the value is defined, then pass it to print, otherwise pass back the string '<<undefined>>'". The result is that your output would say something like:
got 'command' subitem 1 '<<undefined>>'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SOAP::Deserializer problem
by axelrose (Scribe) on Jul 28, 2007 at 04:53 UTC | |
by radiantmatrix (Parson) on Jul 30, 2007 at 14:24 UTC | |
by axelrose (Scribe) on Jul 30, 2007 at 15:52 UTC |