In response to your solution, Japhy...I called on the help of a friend to try and help me decode it.
print $messages{$guess <=> $answer}, "\n"; that's mean there are processes, and the processes are :
1. firstly, a comparison between $guess and $answer. $answer isnt defined yet so
$answer = 0. Looking back
at $guess = 0, $answer= 0, 0 <=> 0 (zero compare zero) will return 0.
2. $guess <=> $answer return 0 that's mean we we're returning '0' to $guess, then look at this $messages{$guess}
alias $messages{0}.
3. what's the value of $messages{0} and we print it, "print $message{$guess} aka print $message{$guess} alias
"just right"
So, is this grasping the concept behind $messages{$guess <=> $answer}? which is the part I am mostly trying to
understand.
"Es gibt mehr zu Leben als Bücher, kennen Sie.
Aber nicht viel mehr " -(Der Smiths)