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

Re^5: Does IO::Select work? (Problem partially resolved)

by BrowserUk (Pope)
on Oct 23, 2012 at 10:11 UTC ( #1000462=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    { 
        my $sock = new IO::Socket::INET( 'localhost:12345' );
    }
    ## Here the handle is closed.
    
  2. or download this
    for( 1 .. 2 ){ 
        my $sock = new IO::Socket::INET( 'localhost:12345' );
    }    
    ## The first handle was implicitly closed during the second iteration.
    
  3. or download this
    ...
        my $client = $svr->accept;
        async {
            ## do things with $client
        }->detach;
    
  4. or download this
    ...
        my $client = $svr->accept;
    ...
            sleep 10;
            ## attempts to use $client fail
        }->detach;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2014-10-02 05:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls