is there a TELL method for mod_perl's STDOUT and STDERR

I'm trying to use Smart::Comments with mod_perl. The problem is that
STDOUT and STDERR are blessed into the Apache class and they do not
have a TELL method. The Smart::Comments module has several references
to tell(STDOUT) and tell(STDERR).

Is there a way to implement a TELL method for these file handles?
E R [ Mi, 15 Juli 2009 21:23 ] [ ID #2008668 ]

Re: is there a TELL method for mod_perl's STDOUT and STDERR

On Wed, Jul 15, 2009 at 3:23 PM, E R<pc88mxer [at] gmail.com> wrote:
> I'm trying to use Smart::Comments with mod_perl. The problem is that
> STDOUT and STDERR are blessed into the Apache class and they do not
> have a TELL method.

I would have thought that the problem would be that it uses a source
filter. I think you're going to be out of luck getting that one to
work.

- Perrin
Perrin Harkins [ Mi, 15 Juli 2009 21:28 ] [ ID #2008669 ]

Re: is there a TELL method for mod_perl's STDOUT and STDERR

it seems to work just fine. For now I've just replaced all references
to tell(STD(ERR|OUT)) with 0. It's only used for formatting anyway.

I've just started to use it, though. Can you think of any issues with
using source filters in mod_perl?

On Wed, Jul 15, 2009 at 2:28 PM, Perrin Harkins<pharkins [at] gmail.com> wrote:
> On Wed, Jul 15, 2009 at 3:23 PM, E R<pc88mxer [at] gmail.com> wrote:
>> I'm trying to use Smart::Comments with mod_perl. The problem is that
>> STDOUT and STDERR are blessed into the Apache class and they do not
>> have a TELL method.
>
> I would have thought that the problem would be that it uses a source
> filter. =A0I think you're going to be out of luck getting that one to
> work.
>
> - Perrin
>
E R [ Mi, 15 Juli 2009 22:28 ] [ ID #2008670 ]
Webserver » gmane.comp.apache.mod-perl » is there a TELL method for mod_perl's STDOUT and STDERR

Vorheriges Thema: first time debugging apache/mod_perl Seg fault
Nächstes Thema: graceful restarts, modperl and pre-loaded modules