in reply to use of uninitialized values

Assuming that you're using DBI to do SQL queries, you could have the SQL statement return something suitable in place of a null (empty) field value -- e.g.:
select NVL(some_column,0) from some_table where some_condition...
The "NVL( column, value )" expression in SQL (in oracle, at least) will yield "value" in the case where "column" is null.

Replies are listed 'Best First'.
Re: Re: use of uninitialized values
by pfaut (Priest) on Apr 07, 2003 at 03:39 UTC

    PostgreSQL and SQL Server use COALESCE. You can give COALESCE a list of values. It will return the first one that is not NULL.

    90% of every Perl application is already written.
    dragonchild