in reply to Change permissions after file is created
1. Don't use system commands on filehandles, but on actual files (file names);
2. Use the internal Perl chmod function rather than a system call;
3. The internal system call requires an octal number for permissions. So try something like:
chmod 0777, $outfile;
|
|---|