in reply to The correct way to return arrays from a module

The problem is that when you do return (\@cols, \@hw);, you are returning references to the arrays, not the arrays themselves As it turns out though, that's what you want to do, lest those two arrays get mushed together. In your "main" code, just change
my (@cols, @hw) = new Itiv::Hw->all_hw($dbh, $filter);
to
my ($cols, $hw) = new Itiv::Hw->all_hw($dbh, $filter);
and treat $cols and $hw as array references.

thor

Feel the white light, the light within
Be your own disciple, fan the sparks of will
With all of us waiting, your kingdom will come