in reply to Re^4: Un "tie"ing a "tie"
in thread Un "tie"ing a "tie"
Support for all the special variables needs a little thought, because they are dynamically scoped. I'd probably want to capture their values in the "open" function and store those values in the object. But, OTOH, maybe someone changing the values dynamically knows what they're doing.
I'm not sure that binmode is required for this filehandle. All it does is call a user-defined perl function for each line (implicitly text). If that code prints to a "real" filehandle, then it is that filehandle that needs to support binmode.
I'd be interested to know how to rewrite the "open" function to avoid needing 5.8.x -- the requirement exists because of bugs in 5.6.x, so the simplest (and safest) thing it to require a version of perl that works reliably with tied filehandles.
The conclusion I'd draw from this is that filehandles aren't as simple as we'd like -- because there's more underlying complexity than initially apparent.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Un "tie"ing a "tie"
by ikegami (Patriarch) on Apr 18, 2006 at 00:57 UTC | |
by dpuu (Chaplain) on Apr 18, 2006 at 01:32 UTC |