- or download this
$dbh = db_connect($database,$user,$password);
- or download this
sub db_connect {
($database,$user,$password) = @_;
...
or printError("Unable to connect to $database" . $DBI::errstr);
return $h;
}
- or download this
# script config file
$database = "shafi";
$user = "shafi";
$password ="shafi";
1;
- or download this
=================================================
#!/usr/bin/perl
...
$db_handle->disconnect();
===================================================