in reply to Bad file descriptor when uploading file via CGI
looks a little funny to me, because read can return zero (a false value) when it reaches the end of the file but still not hit an error condition. That's all I can think of for now.read($sourcefile, $buffer, 1024) or die "Cannot read sourcefile: $!"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bad file descriptor when uploading file via CGI
by bradcathey (Prior) on Apr 07, 2005 at 08:07 UTC |