Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: iterate through a hash with two keys

by fionbarr (Friar)
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}{$_}); }

Replies are listed 'Best First'.
Re^5: iterate through a hash with two keys
by LanX (Chancellor) 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?
[Corion]: A good morning to you too, marto!
[marto]: hey Corion, good weekend?
[prospect]: Thank you
[marto]: no problem prospect
[Corion]: I hope you all spent a good weekend!
[Discipulus]: good morning eumonks!
[Discipulus]: yes thanks, mostly at seaside, but the waterpolo tournemts went bad, very bad.. ;=(
[marto]: hey Discipulus, Corion a reasonable weekend. The boys first trip to the cinema
[Corion]: Discipulus: You got pushed too much under water?

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-07-24 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (348 votes). Check out past polls.