Hi cmac. Thanks very much for your reply.
The modules directory does in fact contain mod_perl.so and mod_apreq2.so.
I had not installed Bundle::Apache2. I did so, but the situation did not change.
The code snippet was placed in cgi-bin, and invoked as http://localhost/cgi-bin/test.cgi. The full file contents are:
--------------------------------------------------------
#!/usr/bin/perl
use Apache2::Upload;
$req = Apache2::Request->new($r);
$upload = $req->upload("foo");
$size = $upload->size;
# three methods to get at the upload's contents ... slurp, fh, io
$upload->slurp($slurp_data);
read $upload->fh, $fh_data, $size;
ok $slurp_data eq $fh_data;
my $io = $upload->io;
print while <$io>;
--------------------------------------------------------
voronwae |