Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parsing Data into arrays

Status
Not open for further replies.

tempname

Programmer
May 15, 2008
6
US
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);
 
Bah, nm sorry to waste the space. I got it figured out about two seconds after I made this post.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top