makes sense, which is when you want the new element to autovivify. You can say$guesses[@guesses]=$guess;
to create a hashref in the new place. With push() you'll have to create the hash yourself.$guesses[@guesses]->{ key} = 'value';
Anno
In reply to Re^2: hangman question
by Anno
in thread hangman question
by convenientstore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |