in reply to Re^2: Process large text data in array
in thread Process large text data in array
Oh wow, this is something New for me to look into.
What if the interrupt is line disconnected/closing browser/stop page loading? My program are mainly run thru www web browser, there is no command line execution in concern here. Does the interrupt handler you suggested able to capture this or they are all same?
In my own theory, if possible to capture such interrupt with custom INT handle function, then I should be able to do some cleanup in the function. Eg.
sub INT_handler { # check for any unfinished jobs # close all files exit(0); } $SIG{'INT'} = 'INT_handler';
The code above are my own untested modification theory from google search.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Process large text data in array
by BrowserUk (Patriarch) on Mar 11, 2015 at 17:28 UTC | |
by hankcoder (Scribe) on Mar 11, 2015 at 17:44 UTC |