in reply to Re^2: using if-elsif-else
in thread using if-elsif-else

I was operating under the assumption that a user could enter "Kevin Johnson" and still get the value for $phnums{'kevin'} - i.e. more than what might be used as the explicit hash key.

You're right, that was the idea :-) Thanks for the alternative code.