note
thinker
<p>Hi [itzMe],<p/>
<p>
If you want to be able to access the contents of the file again after initially reading it, slurp it into an array. This is as simple as
</p>
<code>
open FILE, "sample.txt" or die $!;
my @lines = <file1>;
</code>
<p>Now you can use @lines in whatever way you want. </p>
<p>
Hope this helps
</p>
<p>
thinker
</p>
286634
286634