my $variable = { key => "value" }; # or push @array, { key => "value", key2 => $value2 }; # access to the items: say $array[0]{key}; # prints ``value''