Now , this is something odd... I'm doing a script to check some websites and it creates two arrays with 3 indexes and each (i,j,k) position in the array contains a hash.
In one of the arrays , I can simply do %temphash = %{$array1[$i][$j][$k]};
and it works... On the other , I can do whatever comes to my mind and I simply cant acess the data on the hash...
Here is some weird stuff shown by perl -d :
Code:
main::CheckMirror(script.pl:146): {
DB<3> p $mirror[$i][$j][$k]
HASH(0x10501d28)
DB<4> p %{$mirror[$i][$j][$k]}
DB<4> p %{$mirror[$i][$j][$k]}
DB<5> p $i
0
DB<6> p $j
0
DB<7> p $k
0
DB<8> p $mirror[0][0][0]
HASH(0x10501d28)
DB<9> p %{$mirror[0][0][0]}
DB<10> p $otherhash[0][0][0]
HASH(0x103443a0)
DB<12> p %{$otherhash[0][0][0]}
Then it shows the whole hash stored at $otherhash[0][0][0].
Any ideas? I've tried:
%aux = %{$mirror[$i][$j][$k]}
$mirror[$i][$j][$k]->{"$key"}
and none of them worked... any ideas???