An empty string will return false in a boolean context.  So,

unless ($date1)
{
        $date1=$date2;
}

will work.
Personally, i prefer:

$date1 ||= $date2;

It seems more 'perlish'  ;)

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to