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' };