in reply to Process large text data in array
My major concern now is what will happen when user interrupted the process in the while..loop when file still open?
open (DATF, "<$file_name"); while( <DATF> ) { #-- do whatever here #-- user may interrupt before finishing the while...loop } close(DATF);
Should I be worry of this? Currently I'm only using this while...loop method for input only (read). As for writing data, likely data gonna corrupt.
Any suggestions on this? Thanks.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Process large text data in array
by BrowserUk (Patriarch) on Mar 11, 2015 at 13:56 UTC | |
by hankcoder (Scribe) on Mar 11, 2015 at 17:23 UTC | |
by BrowserUk (Patriarch) on Mar 11, 2015 at 17:28 UTC | |
by hankcoder (Scribe) on Mar 11, 2015 at 17:44 UTC |