Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://371745]
thezip switches the jolokia powder with Folgers Crystals...
[Michael W]: So i can read ok from this how do i put data back inmy @Variables = ( $Map_Request_Date, $Map_Due_Date,$Map _Cutover_Date,$Map _Complete_Date,$Ma p_Approved_Date);

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-04-27 15:33 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (509 votes). Check out past polls.