Your problem is that the values in hashes can only be scalars in Perl. However references are scalars, so you can use references to arrays:
my %alphabet = ( a => \@atags, b => \@btags, ); say for values %alphabet;
In reply to Re: Dereferencing a Hash of Arrays
by philipbailey
in thread Dereferencing a Hash of Arrays
by toro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |