parsing XML result by using perl?

view full story

http://www.unix.com – for some reasons, i need to parse the XML result by using perl. for instance, this is a sample XML result: Code: <Response> <status>success</status> <answer>AAA::AAA</answer> <answer>BBB::BBB</answer> </Response> then i can use this way : Code: my @output = (); foreach my $parts (@all)    ##@all = above XML result {   chomp($parts);   if ($parts =~ /\<answer\>(.*)\<\/answer\>/)   {     push @output, $1;   } } Then i can get a list for all the answers. BUT i hav (HowTos)