$hashref = { name1 => [ { abc => "datax", def => "datay" }, { abc => "datax", def => "datay" }, ], name2 => [ { abc => "datax", def => "datay" }, { abc => "datax", def => "datay" }, ], };