You have two problems:
my %alphabet = \( 'a' => @atags, 'b' => @btags, );
You are using a list reference which produces a list of references, so your hash is the same as:
my %alphabet = ( \'a' => \@atags, \'b' => \@btags, );
say for @{values %alphabet};
The construct @{} dereferences an array reference but values %alphabet does not return an array reference, it returns a list.
In reply to Re: Dereferencing a Hash of Arrays
by jwkrahn
in thread Dereferencing a Hash of Arrays
by toro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |