in reply to Re^2: Global symbol "$prepare" requires explicit package name
in thread Global symbol "$prepare" requires explicit package name
In addition to what poj said, instead of
to see what's going on, write$sth2 = $dbh->prepare("update $what$ever");
Perhaps there's a stray question mark in your $date_newmy $sqltext = "update $what$ever"; print qq(SQL query is: "$sqltext"); $sth2 = $dbh->prepare($sqltext);
In Section
Seekers of Perl Wisdom