in reply to How do I open another handle to STDOUT

I think you want:
open DUP, ">&STDOUT"; print DUP "this goes to STDOUT, really\n"; close DUP;
  • Comment on Re: How do I do this: code$var=STDOUT; open(LOG,$var); print LOG;/code
  • Download Code