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

I load my catalyst application and it starts clearly, but the first request including call to model generates warning. After that it newer occurs again till next restart of MyApp.
[info] MyApp powered by Catalyst 5.7007 You can connect to your server at http://mass:3000 [Fri Aug 24 11:08:11 2007] MyApp _server.pl: Use of uninitialized valu +e in numeri c eq (==) at C:/usr/local/site/lib/DBIx/Class/Storage/DBI.pm line 675.
This warn don't influence to the MyApp working. It's works good. What this warn mean? DBIx-Class 0.08003 Catalyst 5.7007 OS Win 32 XP Active Perl 5.8.8 build 820

Replies are listed 'Best First'.
Re: DBIx::Class warning at startup
by andreas1234567 (Vicar) on Aug 24, 2007 at 07:56 UTC
    It is perl telling you that the program used a uninitialized value in a comparison:
    $ perl use strict; use warnings; my $i; # uninitialized my $j=5; if ($i == $j) { print "equal"; } __END__ Use of uninitialized value in numeric eq (==) at - line 7.
    Examine the source code for DBIx::Class::Storage::DBI and see if you can spot the line in question.

    You will only see such warnings when use warnings are specified. Do that. Always.

    --
    Andreas
      I always use perl -w option as i know it's sane as use warnings