in reply to Solving Deep recursion with a tied Filehandle
Update: Just a note that the local above doesn't seem to do what I thought it would, that is, after the anonymous block, STDOUT is still tied (I thought it would get untied and return to it's original state). I think the correct thing would be to untie STDOUT (and maybe set it to the saved *FH) when you want the old STDOUT back. That still doesn't help cog, though :(*FH = *STDOUT; { local *STDOUT; tie *STDOUT, 'FileHandle::A', *FH; print "testing"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Solving Deep recursion with a tied Filehandle
by ikegami (Patriarch) on Oct 14, 2005 at 18:39 UTC | |
by cog (Parson) on Oct 15, 2005 at 18:03 UTC | |
by ikegami (Patriarch) on Oct 15, 2005 at 22:21 UTC | |
by cog (Parson) on Oct 16, 2005 at 14:17 UTC | |
by ikegami (Patriarch) on Oct 16, 2005 at 16:56 UTC | |
|
Re^2: Solving Deep recursion with a tied Filehandle
by cog (Parson) on Oct 14, 2005 at 16:58 UTC |