in reply to ||= in Hash Slice

I don't think so. But this should work:

@{$audit}{@$copy_fields} = map { defined($_) ? $_ : '' } @{$item}{@$ +copy_fields} ;

Replies are listed 'Best First'.
Re^2: ||= in Hash Slice
by Brovnik (Hermit) on Jan 06, 2009 at 12:12 UTC
    $_ here is the key, which will always be defined, so the defined($item->{$_}) as above is needed.
    Edit: Oops, misread the reply, apologies.
      No it's not. It's the value.