Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Using select and IO::Select

by Zaxo (Archbishop)
on Jul 04, 2004 at 20:15 UTC ( #371745=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -e'alarm 1;printf "Num: %d\tTime left: %f\n", select undef, und
    +ef, undef, 3.0'
    Alarm clock
    $ 
    
  2. or download this
    $ time perl -e'alarm 5;printf "Num: %d\tTime left: %f\n", select undef
    +, undef, undef, 3.0'
    Num: 0    Time left: 0.000000
    $ 
    
  3. or download this
    $ perl -e'$SIG{ALRM}=sub {};alarm 1;printf "Num: %d\tTime left: %f\n",
    + select undef, undef, undef, 3.0'
    Num: -1    Time left: 2.000000
    $ 
    
  4. or download this
    $ perl -e'printf "OS: %s\tNum: %d\tTime left: %f\n", $^O, select undef, undef, undef, 1.5'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2015-07-31 00:04 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 (274 votes), past polls