Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 49.479.629 Times

Data::Page 2.00

  Date Added: August 13, 2010  |  Visits: 918

Data::Page

Report Broken Link
Printer Friendly Version


Product Homepage
Download (92 downloads)



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..

Requirements: No special requirements
Platforms: Linux
Keyword: Datapage Entries First Last Libraries Module Page Perl Perl Module Programming
Users rating: 0/10

License: Freeware Size: 6.14 KB
USER REVIEWS
More Reviews or Write Review


DATA::PAGE RELATED
Libraries  -  Template::Plugin::Page 0.10
Template::Plugin::Page is a plugin to help when paging through sets of results. SYNOPSIS [% USE page = Page($total_entries, $entries_per_page, $current_page) %] First page: [% page.first_page %] Last page: [% page.last_page %] First entry...
3.07 KB  
Networking  -  First/last Links 0.1
Adds functions to get first and last post or paginated page
10 KB  
Communication  -  phpbb 3 last topics module 1.0.2
Simple module which will show your last topics of your phpbb3 forum in your Joomla Site. Just fill some require parameters and start use it. Do NOT require registration to download!
10 KB  
Communication  -  DphpBB3 Last Topics 1.4.1
DphpBB3 Last Topics module (mod_dphpbb3_last_topics) shows the last topics from your phpBB 3.0.x forum. It's the excellent module for Joomla! 1.5 site with phpBB3 forum to display forum activity on the site.There is no need to integrate forum and...
20.48 KB  
Modules  -  IJ Hijri date 1.5.1
We are proud to announce official realize of our first Islamic joomla module. Hijri date module is module that display Hijri and Gregorian date with many configurations available in module parameters.
10 KB  
Miscellaneous  -  phpPagination b 1.0
phpPagination is a PHP class to produce a ready-to-output HTML string with navigation links between multiple pages. It features smart output for intermediate pages (similar to phpBB). Its own output (text and styles) can be set for pagination...
 
Libraries  -  Data::SpreadPagination 0.1.2
Data::SpreadPagination is a Perl module for page numbering and spread pagination. SYNOPSIS use Data::SpreadPagination; my $pageInfo = Data::SpreadPagination->new({ totalEntries => $totalEntries, entriesPerPage => $entriesPerPage, #...
7.17 KB  
Libraries  -  Convert::Cyr
Convert::Cyr, chcp is a Perl module for change cyrillic code page of a text. SYNOPSIS use Convert::Cyr qw(chcp); $converted_string=chcp($string, $maxlen, $from, $to); ABSTRACT Convert::Cyr, chcp - change cyrillic code page of a text....
5.12 KB  
Libraries  -  AutoSplit 5.8.8
AutoSplit is a Perl module that can split a package for autoloading. SYNOPSIS autosplit($file, $dir, $keep, $check, $modtime); autosplit_lib_modules(@modules); This function will split up your program into files that the AutoLoader module...
12.2 MB  
Libraries  -  HTML::EmbperlObject 1.3.6
HTML::EmbperlObject is a Perl module that extents HTML::Embperl for building whole website with reusable components and objects. SYNOPSIS PerlSetEnv EMBPERL_OBJECT_BASE base.htm PerlSetEnv EMBPERL_FILESMATCH ".htm.?|.epl$"...
358.4 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB