open ($fh, '>', $temporary_fileName) or die $!; print$fh "... long string ..."; close ($fh);