title: On linux: cp: missing destination file operand after source file
body: <p>Below code is the part of the script, in which I am merging files of different directories. After merging I am copying remaining files into final directory.
  Merging is working fine but while copying files I am getting </p>
  
  <pre><code>cp: missing destination file operand after `/users/abc/perl_scripts/temp_dir/b.cc'
  Try `cp --help' for more information.
  sh: line 1: /users/abc/perl_scripts/temp: is a directory
  </code></pre>
  
  <p><em></em></p>
  
  <pre><code>for $k(dir1) {
       $flag=0;
       for $j(@dir2) {
            if("$k" eq "$j") {
                 &amp;merge_gcov("$UERRC1/$k","$UERRC2/$k","$DATA_DIR/$k");
                 $flag=1;
                 last;                            
            }
       }
       if($flag == 0) {
             #print "&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; cp $UERRC1/$k $DATA_DIR/$k \n";
             'cp $UERRC1/$k,$DATA_DIR`;
       }
   }
  </code></pre>
  
  <p>Can anybody help me to resolve this...</p>