Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use strict;
- use warnings;
- use DBI;
- my $dbh = DBI->connect("DBI:mysql:database=test;host=192.168.10.101",
- "test", "123456", {'RaiseError' => 1});
- eval { $dbh->do("DROP TABLE foo") }; # foo table not exist
- if ($@) {
- print "Dropping foo failed: $@n";
- } else {
- print "okn";
- }
Add Comment
Please, Sign In to add comment