perlquestion
vishi
<p>
Hi All,</p><p>I'm sure this may have been asked earlier but I searched quite a bit for this and am unable to find something that matches my requirement.</p>
<p>Ok Here is the deal - I have an empty list to start with, say @bigList, to which I keep pushing smaller lists - in a loop. Essentially, when the loop finishes, the @bigList list will now be a list of lists, like so:</p>
<code>
@tempList = <obtained in another part of the code>
<LOOP HERE>
{
push(@bigList, @tempList);
}
</code>
<p>Now, later on in the code, I want to retreive the individual lists that I pushed into @bigList, how do I do this? I read about dereferencing, and getting the reference of the array, but I end up getting the reference of @bigList and not the individual arrays.</p>
<p>Tried the following:
<ul>
<li>http://perldoc.perl.org/perllol.html</li>
<li>http://perldoc.perl.org/perlref.html</li>
<li>http://perldoc.perl.org/perldsc.html#ARRAYS-OF-ARRAYS</li>
</ul></p>
<p>Help!</p>