in reply to How to do Pagination With Perl and mySQL

This is not a tutorial but the way I would recommend doing it; from DBIx::Class::Manual::Cookbook which is part of DBIx::Class-

my $rs = $schema->resultset('Artist')->search( undef, { page => 1, # page to return (defaults to 1) rows => 10, # number of results per page }, ); return $rs->all(); # all records for page 1 return $rs->page(2); # records for page 2

Probably most of the monks here who do webdev have written paging code from scratch at least once. It's not particularly hard but it *is* messy with a lot of off-by-one accounting and tracking of parameters. The paging code used above -- which uses Data::Page -- gives you a clean interface through the mess.

DBIx::Class has a steep learning curve. You have to decide if it's worth it but while making the decision in the midst of painful first attempts keep in mind that without some kind of formal framework or rigor in the code, you are highly likely to get insecure DB interactions and rewrite things that will be extremely difficult and time-consuming for a beginner that are simple functions/methods in DBIC, etc. DBIC has a somewhat rough talking IRC channel but they do give expert help for free.