Help for this page

Select Code to Download


  1. or download this
    my $dbh = DBI->connect( ... );
    my $sth = $dbh->prepare ( ... );
    $sth->execute ( @placeholders );
    
    push @results, $_ while ($sth->fetchrow_hashref);
    
  2. or download this
    push @results, $_ while ($_ = $sth->fetchrow_hashref);