Sometimes there can be path issues when multiple Perl versions are installed. The @INC path may have some bogus stuff in it. Here is some simple code to dump @INC and %INC. Note the difference in how much stuff happens by including the use DBI; vs not.
#!usr/bin/perl -w use strict; #use DBI; print join("\n",@INC),"\n\n"; foreach (keys %INC) { print "$_=>$INC{$_}\n"; } __END__ without use DBI; ---------------- C:/Perl/site/lib C:/Perl/lib . C:/Perl/site/lib/sitecustomize.pl=>C:/Perl/site/lib/sitecustomize.pl strict.pm=>C:/Perl/lib/strict.pm WITH use DBI: -------------- C:/Perl/site/lib C:/Perl/lib . C:/Perl/site/lib C:/Perl/lib . XSLoader.pm=>C:/Perl/lib/XSLoader.pm re.pm=>C:/Perl/lib/re.pm warnings/register.pm=>C:/Perl/lib/warnings/register.pm C:/Perl/site/lib/sitecustomize.pl=>C:/Perl/site/lib/sitecustomize.pl List/Util.pm=>C:/Perl/lib/List/Util.pm ActiveState/Path.pm=>C:/Perl/lib/ActiveState/Path.pm Cwd.pm=>C:/Perl/lib/Cwd.pm warnings.pm=>C:/Perl/lib/warnings.pm DBI.pm=>C:/Perl/site/lib/DBI.pm File/Basename.pm=>C:/Perl/lib/File/Basename.pm Config.pm=>C:/Perl/lib/Config.pm ActivePerl/Config.pm=>C:/Perl/lib/ActivePerl/Config.pm Carp.pm=>C:/Perl/lib/Carp.pm Scalar/Util.pm=>C:/Perl/lib/Scalar/Util.pm Exporter/Heavy.pm=>C:/Perl/lib/Exporter/Heavy.pm strict.pm=>C:/Perl/lib/strict.pm Exporter.pm=>C:/Perl/lib/Exporter.pm vars.pm=>C:/Perl/lib/vars.pm constant.pm=>C:/Perl/lib/constant.pm Config_heavy.pl=>C:/Perl/lib/Config_heavy.pl AutoLoader.pm=>C:/Perl/lib/AutoLoader.pm DynaLoader.pm=>C:/Perl/lib/DynaLoader.pm

In reply to Re^3: Messages while using DBI by Marshall
in thread Messages while using DBI by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.