in reply to Re: mod_perl lib problem
in thread mod_perl lib problem
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:
voronwae-------------------------------------------------------- #!/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>; --------------------------------------------------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: mod_perl lib problem
by cmac (Monk) on Sep 17, 2009 at 15:42 UTC | |
|
Re^3: mod_perl lib problem
by daveklingler (Initiate) on Sep 17, 2009 at 15:31 UTC |