Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

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

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


pc88mxer at gmail

Jul 15, 2009, 12:23 PM

Post #1 of 3 (707 views)
Permalink
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?


pharkins at gmail

Jul 15, 2009, 12:28 PM

Post #2 of 3 (664 views)
Permalink
Re: is there a TELL method for mod_perl's STDOUT and STDERR [In reply to]

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


pc88mxer at gmail

Jul 15, 2009, 1:28 PM

Post #3 of 3 (669 views)
Permalink
Re: is there a TELL method for mod_perl's STDOUT and STDERR [In reply to]

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

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.