in reply to Socket programming & CGI hell
sub process {
while(@_) {
my $line = shift @_;
.
.
.
}
print $new_sock, "Done.\n";
shutdown $newsock, 0;
}
That way it will execute every command that you give it and then close the socket properly. Also, any "returns" in your process() function should be changed to "nexts".
lhoward also makes a good point about security.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Socket programming & CGI hell
by TQuid (Sexton) on Jul 19, 2000 at 22:58 UTC |