in reply to How can I reference a hash value with an array

Try $hash{$type[0]} without the single-quotes. The single-quotes are un-iterpolated. Double-quotes would be interpolated.

Of course, I'm a little curious why you have a hash of key-value pairs that are identical to one another. But, that's your project, not mine. :-)

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.