Help for this page
use POSIX 'ceil'; my $url = "http://..."; ... print qq(<a href="$url?page=$_">$_</a><br>\n) for 1 .. $num_pages;