title: copy inside system command in perl
body: <p>I am trying to use the perl <code>system()</code> command to copy all text files from the folder <code>test_folder</code>.</p>
  
  <pre><code>system("cp","/computer/myname/Desktop/test_folder/*.txt","./");
  </code></pre>
  
  <p>This works if I replace the <code>*</code> with some specific file name, but I want to copy all the <code>.txt</code> files in one shot.</p>
  
  <p>The error I get is </p>
  
  <pre><code>cp: cannot stat '/computer/myname/Desktop/test_folder/*.txt' no such file or directory
  </code></pre>