SQL abstractions (with INI files) - The Code

  my $q = $d->query( 'find_author', { 
              author => \$author, 
          }); 
   
  $q->prepare(); 
  $q->execute(author => 'Larry Wall'); 
  while ( my $row = $q->fetchrow_hashref ) { 
      last if $row->{title} eq 'Programming perl';
  } 
  $q->finish(); 
  • Change value without a need for a prepare
  • fetch* family can perform automatic execute