On Mon, Sep 29, 2008 at 12:34 PM, org chen <[EMAIL PROTECTED]> wrote:
>
> I have a huge file, there are 47,286,116 lines. I am search a line and 
> repalce this line with another string. I know this line is between 
> 20,000,000th to 30,000,000th lines. Which way is more fast and safe:
>

The second way.
while(<>) will read one line at each time.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to