Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my ($Bytes, $Buffer, $BytesRead); open OUTFILE, ">$upload_dir/$filename" or die "Couldn't open o +utput file: $!\n"; binmode OUTFILE; while ($Bytes = read($filename,$Buffer,1024)) { $BytesRead += $Bytes; print OUTFILE $Buffer; } close OUTFILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: file upload
by Coruscate (Sexton) on Jul 11, 2003 at 06:11 UTC | |
|
Re: file upload
by cbro (Pilgrim) on Jul 10, 2003 at 20:14 UTC | |
by antirice (Priest) on Jul 10, 2003 at 21:21 UTC | |
by Dave's not here (Initiate) on Jul 11, 2003 at 16:06 UTC | |
by choocroot (Friar) on Jul 10, 2003 at 21:17 UTC | |
|
Re: file upload
by choocroot (Friar) on Jul 10, 2003 at 21:18 UTC |