in reply to arranging code that works with SQL databases in Perl

Another emerging approach is the "method maker approach" of Fey and DBIx::Skinny:
my $rs = Your::Model->resultset( select => [qw/id name/], from => [qw/user/], ); $rs->add_where('name' => {op => 'like', value => "%neko%"}); $rs->limit(10); $rs->offset(10); $rs->order({ column => 'id', desc => 'DESC' }); my $itr = $rs->retrieve;