in reply to CGI Error
Change, in the line 50, OUTPUT by STDOUT.
Update: Misread question.
It seems that $fh is not defined when you use it in open OUTPUT $buffer, check it. The code below reproduces the error:
use Fcntl qw(:DEFAULT :flock); sysopen(OUTPUT, "output.bin", O_CREAT|O_EXCL|O_WRONLY) or die $!; binmode OUTPUT; while (read(my $fh, my $buffer, 4096)) { print OUTPUT $buffer; } close OUTPUT or die $!;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI Error
by izut (Chaplain) on Sep 27, 2005 at 12:39 UTC |