Flame has asked for the wisdom of the Perl Monks concerning the following question:
my %format = ( linestart => "", fseperator => "\n", fields => { id => 'Id: $', test => 'Test: $' }, lseperator => "\n\n", lineend => "", ); my @data = ( { id => 1, test => 'Basic Functions', }, { id => 1, test => 'Advanced Functions', } ); my $page = 1; #Which page my $length = 1; #Number of entrys per page print pager(\%format,\@data,$page,$length); ------------ Output: Id: 1 Test: Basic Functions ------------ Or if $page was set to 2 Id: 2 Test: Advanced Functions ------------ Of if $length was 2 (or more) Id: 1 Test: Basic Functions Id: 2 Test: Advanced Functions
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Potential for a New Module?
by valdez (Monsignor) on Aug 06, 2002 at 22:57 UTC | |
by Flame (Deacon) on Aug 07, 2002 at 01:28 UTC | |
|
Re: Potential for a New Module?
by fuzzyping (Chaplain) on Aug 06, 2002 at 22:21 UTC | |
by FoxtrotUniform (Prior) on Aug 06, 2002 at 22:48 UTC |