my $host = 'rumpus.plus.net'; my $database = 'somedatabase'; my $dbh = DBI->connect("dbi:mysql:database=$database;host=$host", $username, $password);