print { $to_file ? *MYFILE : *STDOUT } $str;