the_slycer has asked for the wisdom of the Perl Monks concerning the following question:
sob#!/usr/bin/perl use strict; use Net::SMTP::Server; use Net::SMTP::Server::Client; open (OUT => ">outfile")|| die "Could not open $!"; print OUT "HELLO"; my $server=new Net::SMTP::Server("localhost","25"); while (my $conn=$server->accept()){ my $client=new Net::SMTP::Server::Client($conn) || die "Unable to handle client connection: $!"; $client->process; my $msg=$client->{MSG}; print OUT "$msg\n"; print $msg; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File Handle wierdness
by the_slycer (Chaplain) on Nov 22, 2000 at 11:40 UTC | |
by tye (Sage) on Nov 22, 2000 at 11:48 UTC | |
|
Re: File Handle wierdness
by geektron (Curate) on Nov 22, 2000 at 11:40 UTC | |
by snax (Hermit) on Nov 22, 2000 at 14:25 UTC | |
by the_slycer (Chaplain) on Nov 22, 2000 at 11:46 UTC |