On 6/23/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote:

On Fri, 2006-23-06 at 11:55 +0000, Jeff Peng wrote:
> >
> >Let's see, the subject is: reading a line at a time inefficient?
> >
> >That's where I got the idea.
> >
> >
> No,the subject is "Re: reading a line at a time inefficient? ",he has
> followed the other's threads.
>
>
>

If you change the subject of the message, change the subject of the
Subject. Better yet, start a new thread.


--
__END__

Just my 0.00000002 million dollars worth,
   --- Shawn

My apologies Shawn, but to quote your own signature:

"For the things we have to learn before we can do them, we learn by doing
them."

I appreciate those that offered advice! Many thanks, but I am still
researching a way to make it more efficient...

Benchmarks are as follows:

Jeff's method: Server: 1.29 seconds
Shawn's method: Server: 1.51 seconds *SEE ? BELOW
Original method: Server: 0.94 seconds

Again, many thanks!!!

Shawn, I modified your example like so, was this correct?

chomp( my $data1 = <IN> ); # line 1
chomp( my $data2 = <IN> ); # line 2
chomp( my $data3 = <IN> ); # line 3
chomp( my $data4 = <IN> ); # line 4
chomp( my $data5 = <IN> ); # line 5
while( <IN> ){
              chomp;
              push @past_bids, $_; # push remaining lines into array
              }
   close FILE;

Reply via email to