Hash of Hash plese find the below description u can understand...and give me reply..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • razzkumar
    New Member
    • Nov 2015
    • 1

    Hash of Hash plese find the below description u can understand...and give me reply..

    Code:
    $VAR1 = {
              'emulator-5558' => {
                                   'name' => 'unknown_sdk_phone_armv7_6.0',
                                   'model' => 'sdk',
                                   'manufacturer' => 'unknown',
                                   'version' => '2.2'
                                 },
    		 'emulator-5559' => {
                                   'name' => 'unknown_sdk_2.2',
                                   'model' => 'sdk',
                                   'manufacturer' => 'unknown',
                                   'version' => '2.2'
                                 },
    		'emulator-55559' => {
                                   'name' => 'unknown_sdk_2.2',
                                   'model' => 'sdk',
                                   'manufacturer' => 'unknown',
                                   'version' => '2.2'
                                 },
                  'emulator-555599' => {
                                   'name' => 'unknown_sdk_2.2',
                                   'model' => 'sdk',
                                   'manufacturer' => 'unknown',
                                   'version' => '2.2'
                                 },
    above is my hash of hash...
    my problem is if the hash name is same i.e,unknown_sdk _2.2 the output 'name' should be unknown_sdk_2.2 (1),unknown_sdk _2.2(2) like this and also another condition is any one of the 'name' is unknown_sdk_2.2 (3) like this the output should be unknown_sdk_2.2 (4),unknown_sdk _2.2(5)like this please any one can help this...problem
    Last edited by RonB; Nov 27 '15, 02:21 PM. Reason: Added code tags
Working...