in reply to Processing DBI query results
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
to get the computed values, without a switch statement being involved...$compute_h{$opt}->($ref);
|
|---|