Mark Knoop wrote:
I am retrieving fields from a db...
Problem is that if the value in the database is NULL then I get a warning
saying 'Use of uninitialized value in concatenation (.) or string at line
<wherever the print EOF is>'
Any thoughts on the neatest way of handling this?
If you're retrieving data from an SQL database, you could see if it
suppports ISNULL(). It allows you to select an alternate value that will
be returned if the requested field is null. Maybe you can use that to
avoid your undef...
Cheers
Steve
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs