Pagination
am 11.08.2007 20:40:12 von webmaster
I have a DB with ~1100 entries that I have made searchable. However,
the results can be VERY long. So, I want a way of paginating the
output.
I have seen oodles of these types of scripts for PHP, but nothing for
PERL, and my PERL skills are rusty.
Anyone seen somethng like this for PERL, or have an example lying
around?
Thanks!
Jim
Re: Pagination
am 11.08.2007 23:03:13 von Robert Hicks
On Aug 11, 2:40 pm, webmas...@valleywebnet.com wrote:
> I have a DB with ~1100 entries that I have made searchable. However,
> the results can be VERY long. So, I want a way of paginating the
> output.
>
> I have seen oodles of these types of scripts for PHP, but nothing for
> PERL, and my PERL skills are rusty.
>
> Anyone seen somethng like this for PERL, or have an example lying
> around?
>
> Thanks!
> Jim
HTML::Pager
Data::Pager
Data::Pageset
Try one of those...
HTH
Robert
Re: Pagination
am 12.08.2007 10:39:21 von webmaster
On Aug 11, 5:03 pm, Robert Hicks wrote:
> On Aug 11, 2:40 pm, webmas...@valleywebnet.com wrote:
>
> > I have a DB with ~1100 entries that I have made searchable. However,
> > the results can be VERY long. So, I want a way of paginating the
> > output.
>
> > I have seen oodles of these types of scripts for PHP, but nothing for
> > PERL, and my PERL skills are rusty.
>
> > Anyone seen somethng like this for PERL, or have an example lying
> > around?
>
> > Thanks!
> > Jim
>
> HTML::Pager
> Data::Pager
> Data::Pageset
>
> Try one of those...
>
> HTH
>
> Robert
Unfortunately, I can't use any of those, my server doesn't have them
installed and getting them to install something new is like pulling
teeth from an alligator.
Anyone have any other suggestions?
Jim
Re: Pagination
am 12.08.2007 11:02:46 von Gunnar Hjalmarsson
webmaster@valleywebnet.com wrote:
> On Aug 11, 5:03 pm, Robert Hicks wrote:
>> On Aug 11, 2:40 pm, webmas...@valleywebnet.com wrote:
>>> I have a DB with ~1100 entries that I have made searchable. However,
>>> the results can be VERY long. So, I want a way of paginating the
>>> output.
>>>
>>> I have seen oodles of these types of scripts for PHP, but nothing for
>>> PERL, and my PERL skills are rusty.
>>> Anyone seen somethng like this for PERL, or have an example lying
>>
>> HTML::Pager
>> Data::Pager
>> Data::Pageset
>>
>> Try one of those...
>
> Unfortunately, I can't use any of those, my server doesn't have them
> installed and getting them to install something new is like pulling
> teeth from an alligator.
Sounds tough... Then how about installing one of them yourself?
http://perldoc.perl.org/perlfaq8.html#How-do-I-keep-my-own-m odule%2flibrary-directory%3f
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Re: Pagination
am 12.08.2007 11:03:07 von Tim Southerwood
webmaster@valleywebnet.com coughed up some electrons that declared:
>
> Unfortunately, I can't use any of those, my server doesn't have them
> installed and getting them to install something new is like pulling
> teeth from an alligator.
>
> Anyone have any other suggestions?
> Jim
Can you not "install" them adjacent to your script in a lib/ directory, then
path that into your script with a "use lib ..." and maybe a bit of "use
FindBin" for flexibility?
That's what I often do if a centralised installation is more trouble than
it's worth.
Cheers
Tim
Re: Pagination
am 12.08.2007 12:57:11 von webmaster
On Aug 12, 5:03 am, Tim Southerwood wrote:
> webmas...@valleywebnet.com coughed up some electrons that declared:
>
>
>
> > Unfortunately, I can't use any of those, my server doesn't have them
> > installed and getting them to install something new is like pulling
> > teeth from an alligator.
>
> > Anyone have any other suggestions?
> > Jim
>
> Can you not "install" them adjacent to your script in a lib/ directory, then
> path that into your script with a "use lib ..." and maybe a bit of "use
> FindBin" for flexibility?
>
> That's what I often do if a centralised installation is more trouble than
> it's worth.
>
> Cheers
>
> Tim
I didn't think of that, excellent suggestion.
Thanks!
Jim
Re: Pagination
am 12.08.2007 21:02:51 von Sherm Pendley
webmaster@valleywebnet.com writes:
> Unfortunately, I can't use any of those, my server doesn't have them
> installed and getting them to install something new is like pulling
> teeth from an alligator.
>
> Anyone have any other suggestions?
Install it yourself - you only need root access if you want to install a
module into a directory to which only root can write, such as /usr/lib.
In a nutshell, just download the module tarball, unpack it, and specify
an install location to which you have access when you run Makefile.PL. For
example:
perl Makefile.PL PREFIX=/home/mylogin
The above assumes you've already downloaded and unpacked the tarball, of
course. You can also configure the CPAN shell to use a configuration step
like this automatically.
For details, see:
perldoc perlmodinstall
perldoc CPAN
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Re: Pagination
am 13.08.2007 13:34:03 von JimJx
On Aug 12, 3:02 pm, Sherm Pendley wrote:
> webmas...@valleywebnet.com writes:
> > Unfortunately, I can't use any of those, my server doesn't have them
> > installed and getting them to install something new is like pulling
> > teeth from an alligator.
>
> > Anyone have any other suggestions?
>
> Install it yourself - you only need root access if you want to install a
> module into a directory to which only root can write, such as /usr/lib.
>
> In a nutshell, just download the module tarball, unpack it, and specify
> an install location to which you have access when you run Makefile.PL. For
> example:
>
> perl Makefile.PL PREFIX=/home/mylogin
>
> The above assumes you've already downloaded and unpacked the tarball, of
> course. You can also configure the CPAN shell to use a configuration step
> like this automatically.
>
> For details, see:
>
> perldoc perlmodinstall
> perldoc CPAN
>
> sherm--
>
> --
> Web Hosting by West Virginians, for West Virginians:http://wv-www.net
> Cocoa programming in Perl:http://camelbones.sourceforge.net
Thanks Sherm!
Greatly appreciated.
Jim