|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Accessing or printing key and valueby sfrisch@mt.gov (Initiate) |
| on Dec 10, 2012 at 23:32 UTC ( #1008187=perlquestion: print w/ replies, xml ) | Need Help?? |
|
sfrisch@mt.gov has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to print the keys and the values of a hash of array using a data structure. I would like to it sorted by key.<\p> I have got the array set up at least I think I do I have all kinds of print statments telling me that I am not too crazy. I would like to have a print out that looks like the following only soted by the second -- or first fields. Input DOABIL3020 ITSD-ENT_OP-DMSB-DIDS Ora DOABIL309 EXE-SOS-3201_DFLT OraDOABIL3400 ITSD-ENT_OP-ETSB-MID PRD DOABIL5310 ITSD-ENT_OP-ETSB-MID TST DOABIL6230 EXE-SOS-3201_DFLT PRD
DOABIL7001 ITSD-ENT_OP-ETSB-EAS PRD DOABIL7005 ITSD-ENT_OP-AIMB-DCSEC PRD DOABIL7006 ITSD-ENT_OP-AIMB-DCSEC PRD DOABIL7504 EXE-SOS-3201_DFLT PRD DOABIL7581 ITSD-ENT_OP-NTSB-NET PRD DOABIL7582 ITSD-ENT_OP-NTSB-NET PRD DOABIL7583 ITSD-ENT_OP-NTSB-NET PRD Out put is the same only sorted that is what I am shooting for.
I get a print of the keys but not the value. So I do not understand how to get to all tyhe data I am generating.<\p>
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||