in reply to perl pagination links
#!/usr/bin/perl -- use strict; use warnings; use CGI (); Main( @ARGV ); exit( 0 ); sub Main { my $q = CGI->new; ... my @currentPageData = GetItGood( ... ); ... return PaginationFudge( $numberResults, $numperPerPage, $currentPageNumber, \@currentPageData, ); }
Then sub PaginationFudge prints the html to what it should be .... subs! DebugCGI
Logic is the same in every language, even perl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pagination links (logic)
by ironside (Acolyte) on Apr 03, 2014 at 00:08 UTC | |
by Anonymous Monk on Apr 03, 2014 at 00:19 UTC |