我有这个改变 MySQL 数据库数据的 perl 脚本,每次运行它都会出现以下错误
Use of uninitialized value in addition (+) at ./cdr_db.pl-m line 88.
查看第 80 到 88 行的代码
### archive cdr records
$sth = $dbh2->prepare(
"SELECT max($tablename2_archive.EventID) from $tablename2_archive")
or die "Couldn't prepare statement: " . $dbh->errstr;
$sth->execute()
or die
"Database error trying to poll $tablename2_archive.EventID for archive use: "
. $sth->errstr . "\n";
my $nextEventID = $sth->fetchrow_array + 1;
这是完整的脚本
我只是不明白错误是什么。