Three ways:
@{$audit}{@$copy_fields} = map $_ || '', @{$item}{@$copy_fields};
$_ ||= '' for @{$audit}{@$copy_fields} = @{$item}{@$copy_fields};
no warnings 'uninitialized';
I only recommend the first.
In reply to Re: ||= in Hash Slice
by ikegami
in thread ||= in Hash Slice
by Brovnik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |