Eric Edwards replied:
Charles,
That was the problem.  In my table there is one field that is blank a lot of
the time and it showed as 'undef' when I ran the 'Dumper'.
So, I added a default value to that field and the warning did not come up.
A lesson well learned.  
Thanks for the help.
Eric

Charles K. Clarkson wrote:

The error is probably coming from undefined elements of @row.
Did you test the contents of @row? Look for "'undef'" values.

use Data::Dumper 'Dumper';
        .
        .
        .

while ( my @row = $sth->fetchrow_array() ) { 
    print Dumper [EMAIL PROTECTED];
}

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Charles K. Clarkson
Sent: Sunday, July 23, 2006 6:30 PM
To: [email protected]
Subject: RE: perl error

Eric Edwards wrote:

: My program reads the data from the table and prints it out just
: fine. The problem is it prints a warning on every other line that
: I have an uninitialized value in the string at line 22.  I put
: #### at the beginning and end of the code it is talking about.
: I can't figure out what is causing this.

    


Charles K. Clarkson
-- 
Mobile Homes Specialist
Free Market Advocate
Web Programmer

254 968-8328

Don't tread on my bandwidth. Trim your posts.

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to