mmittiga17 has asked for the wisdom of the Perl Monks concerning the following question:
Thank you in advance for any help or suggestions.Each record is 5 lines and are numbered 1-5. Each record is uniquely +identified by usernumber on line1 substr 9-14. I need to parse bits of each line "fix width" for each usernumber and +out put the info to 1 csv line. In absence of the usernumber being p +resent on each record line, how can I create a hash to uniquely ident +ify each line "1-5" with to the usernumber on line 1? This would be +easy if the usernumber appeared on each line but it dose not. 10101ABC000019101L0001374686047S30339 GA &DOE C080229CR7 7 0 +0244 0000001 000000000 2 CR7 000 060714Q + Y 0000000000 000 3 00030339 3JO +HN DOE 36 423 MAIN STREET ATLANTA GA 30339 + 5 +000000000 +0080226I 052461 05241961 10101ABC000019102 N D +3658 MAIN STREET 2 ATLANTA GA3033 +9 0001 3JOHN DOE 05241961INDV37468604 +7S 4 + 5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash Help
by GrandFather (Saint) on Nov 05, 2008 at 20:16 UTC | |
by mmittiga17 (Scribe) on Nov 25, 2008 at 18:30 UTC | |
by GrandFather (Saint) on Nov 25, 2008 at 20:20 UTC | |
by mmittiga17 (Scribe) on Nov 25, 2008 at 22:42 UTC | |
by GrandFather (Saint) on Nov 25, 2008 at 22:52 UTC | |
|
Re: Hash Help
by jethro (Monsignor) on Nov 05, 2008 at 18:03 UTC |