title: Perl system() call failed with return code 65280
body: <p>I run the perl code below.</p>
  <pre><code>$retCode = ClearCase($cmd); 
  </code></pre>
  <p>Works with no error, but it returns <code>65280</code> when I run this:</p>
  <pre><code>$retCode = ClearCase($logcmd); 
  </code></pre>
  <p>I tried on XP and Windows 2003 server, same result, all with ActiveState  Perl v5.14.2.</p>
  <p>This code was working 2 years ago somewhere else.</p>
  <pre><code>  $g_HPPC_DEV_DRIVE =  &quot;M&quot;;
    $g_HPPC_DEV_VIEW = &quot;bldforge_AOMS_DEV&quot;;
    $g_logfile = &quot;logfile.txt&quot;;
    
    $cmd = &quot;startview $g_HPPC_DEV_VIEW&quot;;
    $logcmd = $cmd . &quot; &gt;&gt; $g_logfile 2&gt;&gt;&amp;1&quot;;
    
    $targetDir = $g_HPPC_DEV_DRIVE . &quot;:\\&quot; . $g_HPPC_DEV_VIEW;
    print &quot;\$targetDir = $targetDir\n&quot;; 
    print &quot;Starting view .......\n&quot;; 
    #$retCode = system(&quot;cleartool startview bldforge_AOMS_DEV &gt;&gt; logfile.txt&quot;);
    #$retCode = `cleartool startview bldforge_AOMS_DEV`;
  
    $retCode = ClearCase($logcmd);
    #$retCode = ClearCase($cmd);
  
  sub ClearCase
  {
    my $retCode = 0;
    my $args = $_[0];
  
    my $cmd = &quot;cleartool &quot; . $args;
    $retCode = Execute($cmd);
  
    return $retCode;
  
  }
  
  sub Execute
  {
    my $retCode = 0;
    my $cmd = $_[0];
  
    if ($g_HPPC_BUILD_SIMULATION ne &quot;Y&quot;)
    {
       
       print(&quot;Execute() Running...:   $cmd\n&quot;);     
       $retCode = system($cmd);
       #$retOut = `$cmd`;     
       #$retCode = $?;
       #print(&quot;Command execute output: $retOut\n&quot;);
    }
    else
    {
       print(&quot;Execute() *** SIMULATION:   $cmd\n&quot;);     
    }
  
    print(&quot;Execute() retCode = $retCode, $cmd\n&quot;);
    
    return $retCode;
  }
  </code></pre>
  <p>What is the meaning of this 65280 exit code?</p>