in reply to Uninitialized Value Question
This assumes that there might be some non-null values that don't match /personal/, and those should be left as-is. If it's actually just null/non-null issue, you could simplify that further:$value_a = ( !defined( $value_a )) ? '' : ( $value_a =~ /personal/ ) ? 'checked' : $value_a;
$value_a = ( !defined( $value_a )) ? '' : 'checked';
|
|---|