in reply to Re^4: Adding one last conditional in a random-number guessing game
in thread Adding one last conditional in a random-number guessing game

Can you point me how then (I mean without using a hash)

Sure, the three basic types are scalars, hashes and arrays -- if you don't want to use a hash, use an array :)

  • Comment on Re^5: Adding one last conditional in a random-number guessing game

Replies are listed 'Best First'.
Re^6: Adding one last conditional in a random-number guessing game
by Laurent_R (Canon) on Feb 22, 2014 at 12:31 UTC
    But, as pointed before, it is better and easier to do it with a hash than with an array. So my question to the OP is: why would you want to avoid a hash?