Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

printing hash values and keys from user

by pinnacle (Acolyte)
on Nov 01, 2010 at 18:13 UTC ( [id://868836]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    1 #!/usr/bin/perl -w
      2 
    ...
     20 print "\nEnter Key: ";
     21 my  $type = <stdin>;
     22 print  "you will be taking $course{$type} this semester\n";
    
  2. or download this
    :~/pbe/chap5$ ./exer5.pl 
    4 => perl
    ...
    Enter Key: 2
    Use of uninitialized value within %course in concatenation (.) or stri
    +ng at ./exer5.pl line 22, <stdin> line 1.
    you will be taking  this semester
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://868836]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found