- or download this
sub send_file {
my ($cgi, $dir, $file) = @_;
...
return;
} #END SUB send_file
- or download this
my $in_fh;
...
print while <$in_fh>;
close($in_fh) || die "couldn't close $path: $!";
- or download this
my $BUFSIZ = 64 * (2 ** 10);
my ($in_fh, $buffer);
...
}
close($in_fh) || die "couldn't close $path: $!";