Subject: | CGI::Carp - problem with using an in-memory target for STDERR logging |
Date: | Mon, 31 Aug 2009 12:52:00 -0700 |
To: | bug-CGI.pm [...] rt.cpan.org |
From: | rhubbell <Rhubbell [...] iHubbell.com> |
I tried to sort this out but gave up after I noticed I was giggling
hysterically. Sort of like Inspector Clouseau's boss.
open(ELOG, '>', \$mystderr);
carpout(ELOG);
perldoc -f fileno says:
...
(Filehandles connected to memory objects via new features of "open" may
return undefined even though they are open.)
Seems fileno is deeply implicated in doing IO
I also found PerlIO::scalar.
Maybe my expectations should be lowered and I need a pro forma
explanation. Or maybe I'm just doing something incorrectly.
FWIW, in the meantime, I am just not using CGI::Carp and I have
opened STDERR to \$mystderr and all is well and the gigglins has subsided.