in reply to Parsing an XML file

foreach my $name(keys %($xml_hash->{reaction}} ){ next unless name =~ m@^m:@; my $substrate_id = $xml_hash->{reaction}->{$name}->{substrate +}->{id}; my $product_id => $xml_hash->{reaction}->{$name}->{product}-> +{id}; # do stuff here... }


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg