in reply to Re^3: iterate through a hash with two keys
in thread iterate through a hash with two keys

doing it like this:
my @array = qw( FirstName LastName MiddleName LegalInd DateOfBirth Sex Race Ethnicity Height Weight Build Eyes Hair SocSecNo MaritalStatus PlaceOfBirthCit +y PlaceOfBirthState AddressType DfAdate StreetNumber StreetName StreetType City State Zip ); for (@array) { $xml_writer->dataElement("$_" => $t{A}{$_}); }

Replies are listed 'Best First'.
Re^5: iterate through a hash with two keys
by LanX (Saint) on Apr 29, 2013 at 18:38 UTC
    > doing it like this

    Doing what?

    (Do you speak English?)

    Look I've shown you code iterating thru the whole structure.

    If you can't express your problem in proper words, you are still free to adapt the two nested loops to your needs.

    Cheers Rolf

    ( addicted to the Perl Programming Language)