hmadhi has asked for the wisdom of the Perl Monks concerning the following question:
I have the following file that I would like to read into a array of hash references
CORDR KZN MTC-N AINT 2011-09-29 09:00 DTL PM05 83.79 4 - - CORDR SGC MTC-N AINT 2011-09-29 09:00 JSA BR20 85.39 3 - - CORDR SGC MTC-N AINT 2011-09-29 09:00 JSA BR21 86.06 1 - - CORDR Unk MTC-N AINT 2011-09-29 09:00 JSA BR22 84.55 2 - - CORDR SGC MTC-N AINT 2011-09-29 09:00 JSA RN10 86.97 1 - - CORDR SGC MTC-N AINT 2011-09-29 09:00 JSA RS11 84.57 2 - - CORDR SGC MTC-N AINT 2011-09-29 09:00 JSA RS12 86.31 2 - - CORDR SGC MTC-N AINT 2011-09-29 09:00 JSA SD10 86.79 1 - - CORDR SGC MTC-N AINT 2011-09-29 09:00 JSA SN10 85.54 1 - -
eg
{APP=>'CORDR' , REG=>'SGC', KPI=>'MTC-N' INTERFACE=>'AINT', DATE=>'2011-09-29', TIME=>'09:00', NODE=> 'JSA', RAN => 'SN10', SUCC_RATE=85.54 ... }
How do I code this in perl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash_reference from file
by choroba (Cardinal) on Sep 29, 2011 at 09:11 UTC | |
by jwkrahn (Abbot) on Sep 29, 2011 at 11:33 UTC | |
by choroba (Cardinal) on Sep 29, 2011 at 13:22 UTC | |
by hmadhi (Acolyte) on Sep 29, 2011 at 09:32 UTC | |
by hmadhi (Acolyte) on Sep 29, 2011 at 10:54 UTC | |
by choroba (Cardinal) on Sep 29, 2011 at 10:56 UTC | |
by hmadhi (Acolyte) on Sep 29, 2011 at 13:22 UTC | |
|
Re: hash_reference from file
by Anonymous Monk on Sep 29, 2011 at 14:02 UTC | |
by Anonymous Monk on Oct 02, 2011 at 22:14 UTC | |
|
Re: hash_reference from file
by Anonymous Monk on Sep 29, 2011 at 09:48 UTC |