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