Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: iterate through a hash with two keys

by fionbarr (Pilgrim)
on Apr 29, 2013 at 18:32 UTC ( #1031272=note: print w/ replies, xml ) Need Help??


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}{$_}); }


Comment on Re^4: iterate through a hash with two keys
Download Code
Re^5: iterate through a hash with two keys
by LanX (Canon) 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)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031272]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-10-25 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (143 votes), past polls