Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: One piece of code, two mysteries!

by andal (Hermit)
on Oct 05, 2012 at 07:22 UTC ( #997404=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    kill 0, $pid while sleep 1 and $timeout--;
    kill 3, $pid if $timeout;
    
  2. or download this
    sleep 1 while kill(0, $pid) && $timeout--;
    kill 3, $pid if $timeout;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997404]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2015-07-05 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls