in reply to Re: hangman question
in thread hangman question
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
|
|---|