On Tue, Jun 7, 2011 at 1:13 PM, marcos rebelo <ole...@gmail.com> wrote:
> I don't understand what you are trying to do > > > Ok , i got 2 hashes $hashref1 = [ { 'windows2 ' => { 'lvm' => ' windows2 8GB ram 50 GB HDD', 'cpu' => 'na', 'ip' => ' 171.16.1.10', 'application' => ' win2k8 ,sql,iis', 'hosting' => '', 'assigned_to' => ali', 'rdom0id' => '11', 'server_name' => 'windows2 ', 'ram' => ' na' } } ]; $hashref2 = [ { '6' => { 'website_name' => 'website.com', 'website_id' => '6' }, '3' => { 'website_name' => 'life.com', 'website_id' => '3' }, '7' => { 'website_name' => 'writes.com', 'website_id' => '7' } } ]; i need to push $hashref2 into hashref1 need to get some thing like $hashref1 = [ { 'windows2 ' => { 'lvm' => ' windows2 8GB ram 50 GB HDD', 'cpu' => 'na', 'ip' => ' 171.16.1.10', 'application' => ' win2k8 ,sql,iis', 'hosting' => '', 'assigned_to' => ali', 'rdom0id' => '11', 'server_name' => 'windows2 ', 'ram' => ' na' }, all_websites => { '6' => { 'website_name' => 'website.com', 'website_id' => '6' }, '3' => { 'website_name' => 'life.com', 'website_id' => '3' }, '7' => { 'website_name' => 'writes.com', 'website_id' => '7' } } } ]; this looks a bit confusing but i need to get it this way as i need to pass it through a template . -- Regards Agnello D'souza