in reply to Re: Re: Matching a KEY in a HASH
in thread Matching a KEY in a HASH
will store the last value of the sorted list of values in $value, this is most likely not what you want. You are looking to print the value of %category that the key matches $form{'USER_INPUT'}? then use..$value = (sort values %category);
do you just want the value of Anim if the user inputs Anim, or do you want Build AND CAD when the user inputs 'd'?print $category{$form{'USER_INPUT'} if $category{$form{'USER_INPUT'};
|
|---|