As merlyn said, looks like you are trying to grab all the 'values' with the $value = (sort values %category); statement.
If you just use
print "$category{$form{'USER_INPUT'}}" if exists $category{$form{'USER_INPUT'}};
everything should work fine. (At least it did for me... :)
D a d d i o
In reply to Re: Re: Re: Matching a KEY in a HASH
by Daddio
in thread Matching a KEY in a HASH
by SysAdm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |