I am working with an xml webservice that returns some very funky xml. After parsing the xml, I am left with a tab delimited list.
What I need to do is to take this list and convert into an array. I would prefer the array to not be associative in nature.
This is what I have so far. The resulting array @list is associative in nature which is what I am trying to avoid.
#parse result xml
my $data = $xml->XMLin($result);
#test print parsed xml
print Dumper($data);
#create eou variable that holds the parsed xml column names
my $columns = $data->{COLUMNS};
#create array of column names
@list = split("\t", $columns);
#test print array
print Dumper(@list);
What I need to do is to take this list and convert into an array. I would prefer the array to not be associative in nature.
This is what I have so far. The resulting array @list is associative in nature which is what I am trying to avoid.
#parse result xml
my $data = $xml->XMLin($result);
#test print parsed xml
print Dumper($data);
#create eou variable that holds the parsed xml column names
my $columns = $data->{COLUMNS};
#create array of column names
@list = split("\t", $columns);
#test print array
print Dumper(@list);