Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

fetchall_arrayref with slice and row count

by gmax (Abbot)
on Jan 31, 2006 at 17:54 UTC ( [id://526823]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my $rows = []; # cache for batches of rows
      while( my $row = ( shift(@$rows) || # get row from cache, or reload 
    +cache:
    ...
      ) {
        ...
      }
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    8 $rec = { 'id1' => 'abcdefgid', 'id2' => 'abcdefgie' };
    9 $rec = { 'id1' => 'abcdefgig', 'id2' => 'abcdefgih' };
    10 $rec = { 'id1' => 'abcdefgij', 'id2' => 'abcdefgik' };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://526823]
Approved by friedo
Front-paged by friedo
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-20 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found