in reply to XML - Simple - loop

  1. Do what Corion suggested and read References Quick Reference.
  2. After reading the above quick reference, the code foreach my $key (keys %{$hash_ref}) will mean something to you and be your friend (if you are not sure what that line does, check out the perldocs).