or download this
#!/usr/bin/perl
use strict;
...
my $dbh = DBI->connect('DBI:DBM:PRO','username','password') or die "Co
+uldn't connect to the database ". DBI->errstr;
my $sth_action = $dbh->prepare('select distinct action_type, descripti
+on from action_type ') or die 'Cannot prepare the statement'. $dbh->e
+rrstr;
$sth_action->execute or die 'Cannot execute the statement '. $sth_acti
+on->errstr;