:: Lyon :: Posted October 15, 2004 Share Posted October 15, 2004 Hi, Does anyone know why this code produce these results? Have problems with the hash value being overwritten after a different one is defined. $sample{1}='empty'; $sample{1}{length}=1; printing this $sample{1}{length} will produce value of 1 $anotherSample{1}='empty'; $anotherSample{1}{length}=56; printing this $sample{1}{length} will now produce value 56 ??? The different hash name shouldn't have overwritten first hash value. Thanks Link to comment Share on other sites More sharing options...
Question
:: Lyon ::
Hi,
Does anyone know why this code produce these results?
Have problems with the hash value being overwritten after a different one is defined.
$sample{1}='empty';
$sample{1}{length}=1;
printing this $sample{1}{length} will produce value of 1
$anotherSample{1}='empty';
$anotherSample{1}{length}=56;
printing this $sample{1}{length} will now produce value 56 ???
The different hash name shouldn't have overwritten first hash value.
Thanks
Link to comment
Share on other sites
0 answers to this question
Recommended Posts