in reply to Re: Assigning values to undef hash reference keys two or more at a time
in thread Assigning values to undef hash reference keys two or more at a time
is the slice of the hash named 'hash' (not '%hash') corresponding to the indicated keys. If you want to slice a referent, just stick the (suitably bracketed) reference in place of the name:@hash{ qw/key1 key2 key3/ }
(as AnomalousMonk pointed out below).@{ $hashref }{ qw/key1 key2 key3/ }
|
|---|