geekondemand has asked for the wisdom of the Perl Monks concerning the following question:
Ideally, I'd like some sort of wrapper sub that takes a subref and a timeout value as parameters and then returns undef on timeout and the subroutine value should the sub return in time. I could also envision some sort of closure type setup where this works.
Please enlighten this humble monk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Possible to write a sub that times out???
by McDarren (Abbot) on Dec 25, 2005 at 09:10 UTC | |
|
Re: Possible to write a sub that times out???
by tirwhan (Abbot) on Dec 25, 2005 at 09:44 UTC | |
by jhourcle (Prior) on Dec 25, 2005 at 12:31 UTC | |
|
Re: Possible to write a sub that times out???
by johnnywang (Priest) on Dec 25, 2005 at 20:53 UTC |