in reply to Hashes and arrows

$CstType{$ID} is the hash key into an unnamed hash that $TotCst{$AppCode{$ID}} points to.

To get a good picture of it you could use Data::Dumper to show you how $CstType looks like. Data::Dumper shows you hashes and other datastructures exactly as if you had to initialize them with the data in a perl script