考慮示例代碼:的Perl:提領哈希散列的散列
$VAR1 = {
'en' => {
'new' => {
'style' => 'defaultCaption',
'tts:fontStyle' => 'bold',
'id' => 'new'
},
'defaultCaption' => {
'tts:textAlign' => 'left',
'tts:fontWeight' => 'normal',
'tts:color' => 'white',
}
},
'es' => {
'defaultSpeaker' => {
'tts:textAlign' => 'left',
'tts:fontWeight' => 'normal',
},
'new' => {
'style' => 'defaultCaption',
'tts:fontStyle' => 'bold',
'id' => 'new'
},
'defaultCaption' => {
'tts:textAlign' => 'left',
'tts:fontWeight' => 'normal',
}
}
};
我回它作爲參考, 回報\%哈希
我如何提領呢?
我想要完全解除引用。試過你說的話。這是行不通的。它只解引用第一個散列。 – dreamer
你能給我一個你想要做什麼的代碼示例嗎?我引用的教程很有幫助,順便說一句。 – rjh