in reply to
Assignment to a value only if it is defined
Your temporary assignment approach looks pretty short to me, unless this is golf.
Comment on
Re: Assignment to a value only if it is defined
In Section
Seekers of Perl Wisdom