{local $_ = $bar; $foo = $_ if defined $_;}
$foo = $_ for grep defined, expensive();
In reply to Re^3: Assignment to a value only if it is defined
by ikegami
in thread Assignment to a value only if it is defined
by voj
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |