On Sun, 28 Nov 1999, Eric L. Brine wrote:

> > When I wrote Apache::Filter, I decided to implement an honest-to-god 
> > full-on emulation of Perl's filehandle reading routines, and in particular
> > it should handle $/ properly.  If you want to have a look at that code,
> > perhaps a portion of it could be integrated into Apache.pm so it would
> > behave correctly.
> 
> I looked at Apache.pm and Apache::Filter.pm. There is a significant 
> difference: Apache::Filter "reads" from a string, while Apache.pm must
> receive it's information from a function akin to sysread().
> 
> Alternative 1: Read the whole content into a string and fetch lines from
> that string as in Apache::Filter. I think this is a bad idea, since it
> might
> defy the purpose of only reading a line at a time.
> 
> Alternative 2: Something like these (completely untested) modifications
> to Apache.pm:

I don't plan on changing the current Apache::READLINE anytime soon.
however, if you want to implement a package, say Apache::ReadLine, that
re-defines Apache::READLINE, I'm sure that would be useful to folks.

Reply via email to