How to store an array in session in Perl : <p>I am using Mojolicious Perl framework in my application. I want to store an array in session, but is not successful.</p>

<pre><code>my @returnResult;
$returnResult['fn'] = $decoded-&gt;{'fn'};
$returnResult['ln'] = $decoded-&gt;{'ln'};
$self-&gt;session(returnResult =&gt; @returnResult);
</code></pre>

<p>Please help.</p>
