in reply to Re: Browser Timeout
in thread Browser Timeout
I'm curious because I've never used them, but what's the added advantage or utility of an NPH script over a non-NPH script. To bypass output buffer and avoid browser timeouts, I usually just set $| and an alarm:
{ local $| = 1; local $SIG{ALRM} = sub { print `/usr/bin/fortune`; alarm ALARM_TIME; + }; alarm 1; ... process that (might) take a very long time ... alarm 0; }
Would using NPH be better?
update Thanks, merlyn.
Thanks, ERic
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NPH scripts? (was Re: Browser Timeout)
by merlyn (Sage) on Feb 23, 2001 at 00:00 UTC | |
|
Re: NPH scripts? (was Re: Browser Timeout)
by shambright (Beadle) on May 12, 2001 at 21:58 UTC |