It looks like the value of $cols->{$col}->{'form_values'} is an array reference?
Is that right?
If so try:
my $form_values = sort @{$cols->{$col}->{'form_values'}};
I have to admit I don't get this bit:
($#$form_values == $#$form_names)
How can a number equal a word?
Is that right?
If so try:
my $form_values = sort @{$cols->{$col}->{'form_values'}};
I have to admit I don't get this bit:
($#$form_values == $#$form_names)
How can a number equal a word?