Perl Program ---- Please Help!!!!!?

Tangie

New member
I have a Perl Program. I am trying to create a hash and store the numbers in a hash. Write a program to prompt the user to enter a name from the hash. then print out the phone number of the person.

My problem is i can prompt the user but I can't produce the phone number.

%friends= ("Bill" => "313-333-5555",
"Bob" => "313-777-98755",
"Joe" => "313-555-4435",
);
print "Which phone number do you want?\n";
$friends= <STDIN>;
print %friends;
 
Back
Top