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

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

am 15.07.2009 21:23:13 von E R

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?

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

am 15.07.2009 21:28:14 von Perrin Harkins

On Wed, Jul 15, 2009 at 3:23 PM, E R 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

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

am 15.07.2009 22:28:52 von E R

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 wrote:
> On Wed, Jul 15, 2009 at 3:23 PM, E R 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
>