PERL module to convert xml input into a PERL hash