title: perl chmod help required to set file permission
body: <p>Below is my code:</p>
  
  <pre><code>foreach my $node (@switch_list) { 
      chomp $node;
      print "$node \n";
      my $f3 = "&gt;$node.txt";
      chmod 0755, $f3;
      open FILE3, "$f3" or die "Could not open file:$! \n";
  }
  </code></pre>
  
  <p>Here I want to create many files with full permission but it seems that file created with 
  permission: 0640 and not 0755.</p>