in reply to Re^3: Un "tie"ing a "tie"
in thread Un "tie"ing a "tie"
Good idea. My code was just an example. There are problems with the implementation, though.
For starters, you cannot easily replace an existing file handle, so you failed to address the original question.
No support for $,.
No support for $\.
No error code is returned. People won't be able to use this module when error checking is being done.
No support for write, binmode, etc. People won't be able to use this module when these are called with the filehandle.
Only your open function requires 5.8.0, and it could easily be rewritten to avoid that requirement.
Using $/ as the line terminator would be better than \n because it would give more flexibility to the caller at no cost.
_emit for //g would be more efficient as _emit while //g.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Un "tie"ing a "tie"
by dpuu (Chaplain) on Apr 18, 2006 at 00:49 UTC | |
by ikegami (Patriarch) on Apr 18, 2006 at 00:57 UTC | |
by dpuu (Chaplain) on Apr 18, 2006 at 01:32 UTC |