in reply to class-dbi-mysql and null values

$case->owner( $q->param('owner') );
try
  $case->owner( scalar $q->param('owner') );
because param() returns the empty list (in list context) if a parameter isn't defined.

Replies are listed 'Best First'.
Re^2: class-dbi-mysql and null values
by davidj (Priest) on Nov 05, 2006 at 11:46 UTC
    I thought about doing something like that, also; to get an undefined value in there. However, even if $q->param('owner') is empty, it is still defined.
    davidj