Please!

I'm trying to get my code working but i cannot!

The piece of code is that

@RootArray=(0,0);
$RefToRootArray=\@RootArray;
%HashTableForDataStructure=('Root'=>$RefToRootArray);
$RefToRootHash=\%HashTableForDataStructure;

print " RootArray Address: $RefToRootArray\n";
print ' RootArray Address via $HashTableForDataStructure{"Root"}:';
print " $HashTableForDataStructure{'Root'} \n";
print " Value for RootArray: @RootArray \n";
print ' Value for RootArray via @$HashTableForDataStructure{"Root"}:';
print @$HashTableForDataStructure{'Root'};

All seems to work properly but the last instruction does not!
there the compiler tells me
""
Use of uninitialized value at .//make-tags.pl line 22.
Value for RootArray via @$HashTableForDataStructure{"Root"}:
""
and it displays nothing as @$HashTableForDataStructure{"Root"} was a new
array and not @RootArray 

Where i'm wrong???
:)
 thx
                ulix
 








--------------------------------------------------------------------------------


Visitateci e acquistate in rete su http://www.wind.it


--------------------------------------------------------------------------------

Reply via email to