L
Lauren M. Bylsma
I'm trying to learn Perl to anaylze some data and I am having trouble
getting started, so if someone could help me out that would be greatly
appreciated. So I have a data file that looks something like this:
"INFORMATION"
"b2jun0302"
""
""
""
""
""
"SUMMARY"
"13" "Evt-" "correct" 1
"14" "Evt-" "incorrect" 1
"19" "Evt-" "rcor" 1
"20" "Evt-" "rincor" 1
"32" "Marker" "untitled"
"CHANNEL" "13"
"Evt-"
"No comment"
"correct"
3.92090
16.37657
19.26123
22.21257
25.54742
"CHANNEL" "14"
"Evt-"
"No comment"
"incorrect"
214.23345
238.11100
287.04997
379.90897
431.91602
What I want to do is take the numbers under Channel 13 and put them in an
array then Channel 14 in a separate array. Then I want to add another
column to each. For channel 13 I want this other column to contain all 1's.
For Channel 14 I want this column to contain all 0's. Then I want to put
them together
into one big array and sort it by number from smallest to largest.
Please help
-Lauren
getting started, so if someone could help me out that would be greatly
appreciated. So I have a data file that looks something like this:
"INFORMATION"
"b2jun0302"
""
""
""
""
""
"SUMMARY"
"13" "Evt-" "correct" 1
"14" "Evt-" "incorrect" 1
"19" "Evt-" "rcor" 1
"20" "Evt-" "rincor" 1
"32" "Marker" "untitled"
"CHANNEL" "13"
"Evt-"
"No comment"
"correct"
3.92090
16.37657
19.26123
22.21257
25.54742
"CHANNEL" "14"
"Evt-"
"No comment"
"incorrect"
214.23345
238.11100
287.04997
379.90897
431.91602
What I want to do is take the numbers under Channel 13 and put them in an
array then Channel 14 in a separate array. Then I want to add another
column to each. For channel 13 I want this other column to contain all 1's.
For Channel 14 I want this column to contain all 0's. Then I want to put
them together
into one big array and sort it by number from smallest to largest.
Please help
-Lauren