good chemistry is complicated,
and a little bit messy -LW
One piece of code, two mysteries! (UPDATED.)by BrowserUk (Pope)
|on Oct 05, 2012 at 00:49 UTC||Need Help??|
BrowserUk has asked for the
wisdom of the Perl Monks concerning the following question:
The following mundane piece of code does piped opens to 3 external processes that will each run for 3 seconds, and then times them out after 2, 3 & 4 seconds respectively. It gathers whatever output they produce before being timed out and (attempts) to return it to the caller.
UPDATE: Code and trace below updated to reflect andal's post below, and the information that error 1 below is fixed in 5.16. Error 2, the "modification of readonly value" remains; though in a slightly changed form as reflected by the new trace.
See the console trace after the __END__ token for the results::
The two mysteries are:
Perl bugs or bad code?
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
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.