in reply to RE: RE: Re: help with a Perl term
in thread help with a Perl term

Using DBI was just an example. I had a script that used Win32::ODBC. I ported it over to UNIX because I wanted to add support for Oracle, not just Access databases. It was nice to add the functionality without breaking the old stuff -- or having to rewrite it.
There are times where it would be nice to either use or not use, was my point. For example, using a package if it exists, exiting more gracefully if not. It has been an issue with some of my perl scripts (until now).

Replies are listed 'Best First'.
RE: RE: RE: RE: Re: help with a Perl term
by BBQ (Curate) on Jun 09, 2000 at 00:23 UTC
    Ah! I'm sorry. I hadn't realized it was just an example. I'm a true DBI defender/promoter, so I think you're example just hit my soft spot for DBI. :)

    #!/home/bbq/bin/perl
    # Trust no1!
      In retrospect, using DBI would have been better from the get-go, as it would have been more extensible and easier to change backend databases. Suffice to say that I'll use DBI next time. :-)