in reply to Problem with simple program reading from STDIN
%call_and_response = ( 'yo', 'what\'s up', 'not much', 'cool', 'how about that local sports team?', 'they suck', );
Then you can just do
or something like that.if($call_and_response{$call}){ print $call_and_response{$call}; }else{ print "huh?"; }
Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.
M-J D
|
|---|