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

I'm somewhat confused here, I'm wanting to use SybPerl, DBD, and DBI in my programs. I mostly will use DBI for starters, but I not able to use of point to these modules for my program(s) to recognize them. I need guiedence and below is the message I recieved: ($): program_name-> (dbi_perl) ### Can't locate warning.pm in @INC (@INC contains: /usr/local/lib/perl5/sun4-solaris/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_ perl/sun4-solaris /usr/local/lib/perl5/site_perl .) at dbi_perl line 4. BEGIN failed--compilation aborted at dbi_perl line 4.#### Thanks, Dreman

Replies are listed 'Best First'.
Re: Sybase Modules
by Biker (Priest) on Apr 05, 2002 at 17:05 UTC

    "Can't locate warning.pm in @INC..."

    This indicates that you have used the line:

    use warnings;
    in your script. This is good but your old Perl V 5.004 doesn't know what this means. The warnings pragma was introduced with Perl 5.6.

    Just keep the '-w' flag on the first line of your script and it will be OK.

    I also strongly suggest you to have
    use strict;
    in your script.

    Update: BTW, it looks as if you've written
    use warning;
    when the correct pragma should be
    use warnings; # Note the 's'



    Everything went worng, just as foreseen.