I'd like to do the following:
open $fh, '<', 'some_file'; # A very big file
$b = APR::Bucket->new($ba, $fh);
while($b->read($buffer, 2048)) {
...
}
or
$b = APR::Bucket->new($ba, \*STDIN);
On Fri, Sep 16, 2005 at 12:25:24AM +0300, Nikolay Ananiev wrote:
>
>
> I'd like to do the following:
> open $fh, '<', 'some_file'; # A very big file
> $b = APR::Bucket->new($ba, $fh);
>
> while($b->read($buffer, 2048)) {
> .
> }
>
> or
> $b = APR::Bucket->new($ba, \*STDIN);
>
>
>
>
>
On Fri, 16 Sep 2005 00:25:24 +0300
"Nikolay Ananiev" <[EMAIL PROTECTED]> wrote:
> I'd like to do the following:
> open $fh, '<', 'some_file'; # A very big file
> $b = APR::Bucket->new($ba, $fh);
>
> while($b->read($buffer, 2048)) {
> ...
> }
>
> or
> $b = APR::Bucket->new($ba, \*STDIN);
Why
I'd like to use APR::Request's custom parser under some different
environments
like FastCGI, PerlEx and PersistentPerl. All these tie STDIN to some
package, which defines
methods to read a particular socket. APR::Request::CGI doesn't work,
because the
operating system's STDIN is not used.
Current