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