in reply to Printing out to a .txt file.
otherwise, just open a file for writing normally, using STDOUT as your filehandle. You can save your STDOUT filehandle byopen(STDOUT, '>&MY7') or warn "$!";
first, then restore it withopen(SAVE_STDOUT, '>&STDOUT');
after.open(STDOUT, '>&SAVE_STDOUT');
|
|---|