use ModuleName; # ... pageNumbers($total_pages,$matches,$total_records_page, @and_whatever_other_variables_you_need);