otijim has asked for the wisdom of the Perl Monks concerning the following question:

I'm using the WIN32::ODBC module (in ActivePerl for Windows) to access a database on a network. I use an NT4 Workstation and the code works fine, but ultimately we want to port this to a unix box on the network. So, how can I port this? I need thy great wisdom! Help!

Replies are listed 'Best First'.
Re: Win32::ODBC to Unix
by Fastolfe (Vicar) on Nov 14, 2000 at 00:02 UTC
    See DBI and DBD::ODBC. I don't know how Win32::ODBC works. Does DBI not run (well?) under Win32? I'm just wondering why people always tend to use Win32::ODBC over DBI on Windows.
RE (tilly) 1: Win32::ODBC to Unix
by tilly (Archbishop) on Nov 14, 2000 at 09:32 UTC
    I had some code written for old Windows Perl that used Win32::ODBC (so to answer Fastolfe's question, DBI was not an option because that did not used to be available there). My solution was to write my own Win32::ODBC module that was a wrapper around DBI. It wasn't very hard to just wrap the functions I used that way, and worked quite smoothly.