in reply to Processing DBI query results

Is there any reason you can't perform your computations in the select statement?

Are the values computed "by row", or are they aggregate computations?

Your other alternative would be to set up a hash of checkboxes to subrefs, allowing you to just loop over the @enable_opts array and just invoke

$compute_h{$opt}->($ref);
to get the computed values, without a switch statement being involved...
--
Mike