Data::Page 2.00
Sponsored Links
Data::Page 2.00 Ranking & Summary
File size:
0.006 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1088
Date added:
2006-10-31
Publisher:
Leon Brocard
Data::Page 2.00 description
Data::Page is a Perl module that helps when paging through sets of results.
SYNOPSIS
use Data::Page;
my $page = Data::Page->new();
$page->total_entries($total_entries);
$page->entries_per_page($entries_per_page);
$page->current_page($current_page);
print " First page: ", $page->first_page, "n";
print " Last page: ", $page->last_page, "n";
print "First entry on page: ", $page->first, "n";
print " Last entry on page: ", $page->last, "n";
When searching through large amounts of data, it is often the case that a result set is returned that is larger than we want to display on one page. This results in wanting to page through various pages of data. The maths behind this is unfortunately fiddly, hence this module.
The main concept is that you pass in the number of total entries, the number of entries per page, and the current page number. You can then call methods to find out how many pages of information there are, and what number the first and last entries on the current page really are.
For example, say we wished to page through the integers from 1 to 100 with 20 entries per page. The first page would consist of 1-20, the second page from 21-40, the third page from 41-60, the fourth page from 61-80 and the fifth page from 81-100. This module would help you work this out.
SYNOPSIS
use Data::Page;
my $page = Data::Page->new();
$page->total_entries($total_entries);
$page->entries_per_page($entries_per_page);
$page->current_page($current_page);
print " First page: ", $page->first_page, "n";
print " Last page: ", $page->last_page, "n";
print "First entry on page: ", $page->first, "n";
print " Last entry on page: ", $page->last, "n";
When searching through large amounts of data, it is often the case that a result set is returned that is larger than we want to display on one page. This results in wanting to page through various pages of data. The maths behind this is unfortunately fiddly, hence this module.
The main concept is that you pass in the number of total entries, the number of entries per page, and the current page number. You can then call methods to find out how many pages of information there are, and what number the first and last entries on the current page really are.
For example, say we wished to page through the integers from 1 to 100 with 20 entries per page. The first page would consist of 1-20, the second page from 21-40, the third page from 41-60, the fourth page from 61-80 and the fifth page from 81-100. This module would help you work this out.
Data::Page 2.00 Screenshot
Data::Page 2.00 Keywords
Page 2.00
Perl module
page
entries
module
first
last
results
Data::Page
DataPage
Data::Page 2.00
Libraries
Programming
Bookmark Data::Page 2.00
Data::Page 2.00 Copyright
WareSeeker periodically updates pricing and software information of Data::Page 2.00 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Data::Page 2.00 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
entries made easy
have omitted entries
entries mohawk raceway
pages jaunes
first last
entries at hollywood park
have some entries
white pages
entries ashurst
how to obtain court docket entries
perl modules
entries at del mar
omitted some entries
pages blanches
entries on time
entries from september
page six
first last lyrics
Related Software
Data::CTable is a Perl module that helps you read, write, manipulate tabular data. Free Download
Data::Page::Viewport is a Perl module to scroll thru data a page, or just an item, at a time. Free Download
Apache::Storage is Perl module containing simple functions to store and retrieve information from within the Apache process. Free Download
Data::Password::Manager is a Perl module to generate, check, manage crypt - des passwords. Free Download
App::Manager is a Perl module for installing, managing and uninstalling software packages. Free Download
APR::Brigade is a Perl API for manipulating APR Bucket Brigades. Free Download
Data::Type::Docs is a Perl module with the manual overview. Free Download
rfsdelta is a kernel module for the Linux 2.6 series that collects all filesystem inode changes. Free Download
Latest Software
Popular Software
Favourite Software