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

I have only 2 lines in my code program.pl
#!/opt/perl5100/bin/perl use DBI;
When I run ./program.pl I am getting the messages:
ARGS:DBI        /opt/perl5100/lib/site_perl/5.10.0/x86_64-linux/auto/DBI/DBI.so    
File: /opt/perl5100/lib/site_perl/5.10.0/x86_64-linux/auto/DBI/DBI.so      DBI
How can I get rid of these messages?

Replies are listed 'Best First'.
Re: Messages while using DBI
by stonecolddevin (Parson) on Oct 16, 2009 at 19:40 UTC

    Start by turning on strict and warnings. Are you sure that's the correct path to perl?

    mtfnpy

      Yep, I have those already. I also tried turning them off. I have more than one version of Perl. The other version does not give the same problem. There are no 'shared' libraries either.
        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
Re: Messages while using DBI
by Old_Gray_Bear (Bishop) on Oct 16, 2009 at 19:38 UTC
    You go talk to the folks at Fink and ask them how you go about suppressing the messages their Perl implementation throws at start-up.

    ----
    I Go Back to Sleep, Now.

    OGB

      I installed the module using CPAN, rather than any package manager. So I guess it is not them.