chmod a file from within a perl file.

by "Jan Morell" <janman(at)n-jcenter.com>

 Date:  Fri, 3 Mar 2000 18:54:28 -0500
 To:  "HWG-Languages" <hwg-languages(at)hwg.org>
  todo: View Thread, Original
Hi List members,

I am using a Perl file to create another CGI on the fly.  I haven't been
able to figure out how to chmod the file to 775 from within the Perl
document.  I know how to do that making directories, but I don't know how to
do it with a file.

Here is the code that I am using to create the file in question. Any help
would be appreciated.

Jan

open (RESET_FILE, ">>/path/reset.cgi");
print RESET_FILE <<"EOT";
Contents here
EOT
close (RESET_FILE);

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA