Test for existing data in a db w/ perl.

June 4, 2004

my $sth = $dbh->preparecached(q(select primarykey from table where primarykey = ?)) or die "Couldn't prepare statement: " . $dbh->errstr;
$sth->execute; my ($count) = $sth->fetchrow
array; $sth->finish
unless ($count) {
...
}

Transform your business without wasting money.

We help you identify, audit and implement technology changes within your business to create leverage points to scale your company faster.