in reply to Re: Exhausting filehandles behaviour?
in thread Exhausting filehandles behaviour?
use strict; use warnings; use CGI qw(:all); use File::Slurp qw(write_file); sub hook { my ($file, $buffer, $bytes, $data) = @_; write_file('/tmp/uplog', {append => 1}, "[$file][$bytes][$data]"); } my $q = CGI->new(\&hook, 'AppName'); my $f = $q->param('upload_file'); print header(), "Done.";
|
|---|