in reply to dereferncing a an array store in hash

Add brackets to specify what you are dereferencing.

If you were using strictures, you would've been alerted to the syntax error: 'Global symbol "$my_hash" requires explicit package name'

use strict; my %my_hash = ( k1 => "123", k2 => ["Bach", "Bachi"], ); my @my_array = @{$my_hash{"k2"}}; print @my_array;