in reply to pulling value based on input

The item of a %hash can be accessed with $hash{$key}. Read perldata for more information.