- or download this
# equivalent Mail:Sendmail code
open S,'>','socket' or die;
my $oldfh = select(S); $| = 1; select($oldfh);
close S;
- or download this
# select(STDOUT); # uncomment to fix
- or download this
select $stdout;
- or download this
unless ( socket S, AF_INET, SOCK_STREAM, (getprotobyname 'tcp')[2] ) {
return fail("socket failed ($!)")