|
|
| XP is just a number | |
| PerlMonks |
Re^3: Backticks and SIGALRMby BrowserUk (Pope) |
| on Aug 20, 2007 at 16:48 UTC ( #633867=note: print w/ replies, xml ) | Need Help?? |
|
YW. Here's a slightly cleaner implementation. The only caveat is that it abitrarially throws away any output received prior to the timeout occuring. Only you can decide how you want to signal timeout if you also wish to retrieve any partial output. I guess this could form the basis of a whole CPAN module, but it just seems altogether too trivial for that?
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||