perlquestion
Anonymous Monk
<p>Hi Monks,</p>
<p>I have the tera byte file and want to know to parse the file which one of the below process increases the performance</p>
<p>
<b>Method 1</b>:<br>
Open the file, read the line by line and do the some calculation and put the result into the other file and once completed all lines in file, close the file.
<br><br>
<b>Method 2</b>:<br>
Open the file, read all content into the one array variable and close the file after read the each line from array after do the calculation and put the result into the file.
<p>Please tell me which is best way to parse the file , otherwise is there any other way to show best performance.</p>
<p>Sorry, for my bad english</p>
16