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