Is there a way to initialize an anonymous hash with the slice syntax ? How would I edit the code below to skip using the %hash variable ? This is not important code wise, but not knowing how to do it is killing me.
my %hash;
@hash{ @labels } = @values;
$data->{keys_and_values} = \%hash;