- or download this
use strict;
use warnings;
...
} else {
print("Error ", 0+$!, ": $!\n");
}
- or download this
Win>perl a.pl
Error 0:
linux$ perl a.pl
Error 29: Illegal seek
- or download this
use strict;
use warnings;
...
} else {
print("Timeout\n");
}
- or download this
Win>perl a.pl 0
Timeout
...
linux$ perl a.pl 1
select: (9) Bad file descriptor
- or download this
- if(select($rb,$wb,$eb,$t) > 0)
+ if(select($rb,$wb,$eb,$t) >= 0)
- or download this
use strict;
use warnings;
...
print("Num writers ready: ", 0+@$w_ready, "\n");
print("Num errors ready: ", 0+@$e_ready, "\n");
}