$str = 'abc'; $hash = {} $hash->{'key'} = 'val'; $array = []; push @$array, 'val'; # one of the few times you ever use a @ or a % print $array->[0];