SQL abstractions (with INI files)

prev next

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'; # 1st 'pink' edition ;)
  }
  $q->finish();