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
In reply to NPH scripts? (was Re: Browser Timeout)
by eg
in thread Browser Timeout
by Jonas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |