my $pager = HTML::Pager->new( query => $query, column_names => \@headers, get_data_callback => $data, rows => $rows, page_size => 10, );