>>>>> "AG" == Agnello George <agnello.dso...@gmail.com> writes:

  AG> i need to push $hashref2  into hashref1

that is the major flaw in your logic. you can't push into hashes. you
can assign a hash ref to a slot in a hash. please use the correct terms
as it will make it easier for you to be understood.


  AG> need to get some thing like

  AG> $hashref1   = [ { 'windows2 ' => { 'lvm' => ' windows2 8GB ram 50 GB HDD',
  AG> 'cpu' => 'na', 'ip' => ' 171.16.1.10', 'application' => ' win2k8 
,sql,iis',
  AG> 'hosting' => '', 'assigned_to' => ali', 'rdom0id' => '11', 'server_name' 
=>
  AG> 'windows2 ', 'ram' => ' na' }, all_websites =>  { '6' => { 'website_name' 
=>
  AG> 'website.com', 'website_id' => '6' }, '3' => { 'website_name' => 
'life.com',
  AG> 'website_id' => '3' }, '7' => { 'website_name' => 'writes.com', 
'website_id'
  AG> => '7' } }  } ];

that is unreadable. print them with Data::Dumper so we can see the
layout of you data tree.

  AG> this looks a bit confusing but i need to get it this way as i need to pass
  AG> it through a template .

it is only confusing because you printed it in a confusing
style. remember we have to read what you post here, not read your
mind. so post well formatted data and code to make it easier on our eyes
and brains.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to