Is it better to use the Perl DBI module or set up the system DSN and use ODBC?

I am using Perl to collect data from multiple log files and store it in an Oracle database on the same Windows 2003 host. I am running my script. Is it better to use the Perl DBI module or set up the system DSN and use ODBC?

+1


a source to share


1 answer


DBI, or at least something based on DBI, is the standard way to intercept databases in Perl. Then in DBI you can use either the oracle direct driver (DBD :: Oracle) or the ODBC driver (aptly named DBD :: ODBC). So it really doesn't matter which one you use, at least not for your code.



As far as the level above DBI goes, I like DBIx :: Simple , but there are others.

+3


a source







All Articles