Jerry Preston wrote:
>
> Hi!,
Hello,
> I am look for a better way and a faster way to deal with a 4 - 8 meg data
> file. This file has been saved as an .cvs file for excel to read in.
>
> [snip]
>
> open( FI, $file_path ) || die "unable to open $file_path $!\n";
> @file_data = <FI>;
> close FI;
>
> LINE: foreach $_ ( @file_data ) {
Reading the entire file into an array is going to be very slow. Loop
through the file one line at a time.
open( FI, $file_path ) || die "unable to open $file_path $!\n";
LINE: while ( <FI> ) {
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]