Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        $dbh->rollback ();
        die $@;
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
    };
    
    print "Added $entries rows to the People table\n";
    
  3. or download this
    $entries = $sth->execute_array ({}, [keys %people], [values %people]);
    
  4. or download this
    #1
    my $sql = qq{SELECT name, age FROM People WHERE name LIKE '%e' AND age
    + < 25};
    ...
            printf "%-10s %3d\n", @{$row}{'name', 'age'};
        }
    };