You can just run "use mynewdbname" as a sql statement in do:
$dbh->do( "use mynewdbname" )
I don't use mysql, but I find plenty of usage of that when searching in google code with $dbh->do("use
In reply to Re^3: how to create a database in perl
by erix
in thread how to create a database in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |