in reply to Re^2: If condition
in thread If condition

Instead of having an array of pairs, you should use a hash. Something along these lines:
my %h = ( correct => $some_value, date => $other_value, ... ); # later on you can retrieve the data like this, without any iteration: my $date = $h{'date'}; my $cor = $h{'correct'};

Learn about hashes, they are really worth your time.