in reply to Re: Re: Matching a KEY in a HASH
in thread Matching a KEY in a HASH

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

Replies are listed 'Best First'.
Re: Re: Re: Re: Matching a KEY in a HASH
by SysAdm (Novice) on May 15, 2001 at 01:01 UTC
    Thanks!
    for everyone's help on this....

    It works great now...!

    _________SysAdm