uprichard
Programmer
- May 2, 2002
- 16
I am reading data from a CSV file and after each read I end up with an array containing the data ie.
$array[0]="HTM"
$array[1]="complete"
$array[2]="1"
I want to be able to create variables that counts the number of times that a certain combination of data is returned. For the above I would want to add 1 to two different variables that are made up partly from the data returned from the read
status.$array[0].$array[1]
sev.$array[0].$array[2]
How do I do this in Perl?
$array[0]="HTM"
$array[1]="complete"
$array[2]="1"
I want to be able to create variables that counts the number of times that a certain combination of data is returned. For the above I would want to add 1 to two different variables that are made up partly from the data returned from the read
status.$array[0].$array[1]
sev.$array[0].$array[2]
How do I do this in Perl?