Help for this page

Select Code to Download


  1. or download this
    you show
    $hash{'mode'}{'component'} = [{'command' => 'cmd1'}, {'command' => 'cm
    +d2'}];
    ...
    but I'd go for
    $hash{'mode'}{'component'}{'commands'} = ['cmd1', 'cmd2'];
    
  2. or download this
    #!/perl -w
    use Data::Dumper;
    ...
        } 
    }
    print Dumper(\%the_hash);
    
  3. or download this
    push @{$the_hash{$current_mode}{$current_comp}{'commands'}}, $data;
    
  4. or download this
    $VAR1 = {
              'mode1' => {
    ...
                                      }
                         }
            };