in reply to XML header parsing error
Your error occurs because $results is a string, and you're trying to use it as a hashref. For example:
use strict; my $foo = "Hello World"; exists $foo->{greeting}; # dies
If you're trying to access your XML data as a hashref, then you probably want something like XML::Simple. However, there are a number of other errors and oddities with your code.
|
|---|