wileykt has asked for the wisdom of the Perl Monks concerning the following question:
while ($client = $server->accept()) { $receivefile = $receivepath . $timestamp . ".ORD"; push(@files, $receivefile); open FILE, $receivefile or die "Can't open: $!"; while (<$client>) { print FILE $_; } close FILE; $timestamp = $timestamp + 1; foreach $file (@files) { print "$file received"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing while receiving files from socket
by jryan (Vicar) on Oct 31, 2001 at 02:11 UTC | |
|
Re: Printing while receiving files from socket
by ton (Friar) on Oct 31, 2001 at 01:06 UTC | |
|
Re: Printing while receiving files from socket
by slayven (Pilgrim) on Oct 31, 2001 at 00:55 UTC |