Perl MindMelting uninitialized variable in scalar from array exception
<p>I had a hard time titleing this question, as I am truly stumped as to what could be causing this error. </p>

<p>when I have the code typed as such: </p>

<pre><code>my @strArray= ('TypeKey', 'AccidentType', '01');
my %HashArrayThing = ('EnglishArray' =&gt; @strArray, 
        'FrenchArray' =&gt; ('julier', 'aout', 'septembre'));
my $scalar = @HashArrayThing{EnglishArray};
my @ARR = @HashArrayThing{EnglishArray};
say $scalar,
say $ARR[0];
</code></pre>

<p>the output is: </p>

<pre><code>TypeKey
TypeKey1
</code></pre>

<p>when I change ONLY the <code>say $ARR[0]</code> to <code>say $ARR[1]</code> (or any other number) I get the error: "Uninitialized value in say at line 50"(same line as the 'say $scalar')</p>

<p>This makes no sense to me. I could understand that the $ARR[1] could be out of bounds having maybe olny gotten the first value from the array stored in the hashset, but I don't understand at all where this is coming from. 
I hope there is someone out there with a thourough understanding of perl who can enlighten me.  </p>

<p>PS. also where is the '1'coming from that is bieng added to typekey.</p>