FS> Ideally a class is a piece of code that works properly without
FS> assumptions about the program it is used in.
FS> 1. A class is not a module and vice versa.
FS> 2. A constructor is not called automatically.
please don't teach me perl!
FS> You missed the point. I can't remember the state by myself, because
FS> STDERR may change during program execution (under CGI::SpeedyCGI STDERR is
FS> reopened with every CGI call).
FS> Okay, your are right, a tied object is precisely detectable. This is
FS> what I miss for scalars in the filehandle API. But ties are slow and
FS> I don't like the code very much.
agreed they are slow. if you are concerned about speedy reopening
stderr, then why don't you close your string and reopen it each time
too? i still don't see the issue.
FS> No, it's not an xy problem. I asked a concrete question about
FS> Perls filehandle API and I know by myself what I have to conclude
FS> from the (in this case: negative) answer.
well i am sure a better overall solution exists. in fact i know it. but
i can't convince you of that. hence i have to call it an xy problem. not
much more i can do here.
uri