Dealing with IO::Capture bugsby Xiong (Hermit)
|on Aug 04, 2010 at 10:35 UTC||Need Help??|
Xiong has asked for the
wisdom of the Perl Monks concerning the following question:
IO::Capture::Tie_STDx 0.05, which does the heavy lifting for various IO::Capture modules, has two bugs. It incorrectly handles say(); and it fails to implement a TELL() method.
I emailed the author, Mark REYNOLDS, over two months ago; no reply. Granted, I haven't yet made a concerted effort to contact. Given, I should. I needed these bugs fixed immediately so, that's what I did.
I have written two modules, IO::Capture::Sayfix and IO::Capture::Tellfix. Each, on load, makes a quick test to see if the corresponding bug has been fixed in the currently loaded ::Tie_STDx; if so, it does nothing; else it fixes the bug on the spot. ::Sayfix redefines PRINT(); ::Tellfix defines TELL(). This approach is intended to play well with the existing version of ::Tie_STDx as well as any future version in which either, both, or neither of these bugs are fixed.
Before writing ::Sayfix, I patched a copy of the existing ::Tie_STDx. I was told by other Monks, in no uncertain terms, that even to install such a thing locally was to ask for trouble.
Seeking some direction on how to proceed. One or more of:
Note: Contents may change.