in reply to Re: Assignment to a value only if it is defined
in thread Assignment to a value only if it is defined

Wrong. That's equivalent to
$foo = $bar unless defined $foo;
What the OP wants is:
$foo = $bar // $foo;
which is equivalent to
$foo = $bar if defined $bar;
assuming the absence of ties and overloading.