in reply to Re: Un "tie"ing a "tie"
in thread Un "tie"ing a "tie"
And this works quite well, BUT (repeat after me Windoze is evil!) the new file handle isn't STDOUT, and redirecting STDOUT doesn't work. How does one save "*STDOUT", which is a symbol table reference, in another variable. I can't sayopen (TagPrint::THELOG, ">&STDOUT") or die "dup: $!";
then refer to 'THELOG' as if it were the original STDOUT at the point where I did the assignment. This would be "logical", but I can see it being difficult, as STDOUT is a "special" thing. It all seemed so easy. Just add a few lines to a program and it would take care of the magic. Alas, it is a bit more.THELOG = STDOUT;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Un "tie"ing a "tie"
by dpuu (Chaplain) on Apr 18, 2006 at 01:58 UTC | |
Re^3: Un "tie"ing a "tie"
by dragonchild (Archbishop) on Apr 18, 2006 at 02:32 UTC |