in reply to database connection

weither it's not the best (perl's)way to connect to a DataBase , you should try to
close (SQLPLUS)

BTW have a look at DBI. the DBI::FAQ is very instructive.
--
dominix