Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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 (Bishop) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031272]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2018-03-17 19:08 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (225 votes). Check out past polls.