in reply to get one value from Tie::IxHash

When I run your code, I get the extremely helpful error message:
Can't locate object method "Value" via package "Tie::IxHash"
Change:
print $r->Value('a') ; # doesn't work
to:
print $r->Values('a') ;
According to the Tie::IxHash module docs, the name of the function is 'Values' (with an 's'), and it prints '1' for me.