Help for this page

Select Code to Download


  1. or download this
    open( LOG, ">>", "log.txt" )
        or  die "Can't' write to log.txt: $!\n";
    ...
    open STDOUT, '>>', 'newlog.txt'
        or  die "Can't write to newlog.txt: $!\n";
    system("echo Boo, this still goes to old STDOUT despite reopening");