I\'m trying to store an array (not array ref) in a hash but it is treating the array in scalar context and only storing the last value of array in the $hash->{
$hash->{
$h->{'a'} = [ 'str_1', 'str_2' ];
You can only store scalar as a hash value, and scalar can be simple value or array reference.
Check perldoc.