title: How can I generate random unique temp file names?
body: <p>I am trying to create a temp file using the following code: </p>
  
  <pre><code> use File::Temp  ;
   $tmp = File::Temp-&gt;new( TEMPLATE =&gt; 'tempXXXXX',
                          DIR =&gt; 'mydir',
                          SUFFIX =&gt; '.dat');
  </code></pre>
  
  <p>This is create the temp file. Because of my permission issue, the other program is not able to write into file. </p>
  
  <p>So I just want to generate the file name without creating the file. Is there any where to do that? </p>