http://www.perlmonks.org?node_id=884867


in reply to Re^2: how to create a database in perl
in thread how to create a database in perl

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