|
Posted by Joost Diepenmaat on March 9, 2008, 5:17 pm
Please log in for more thread options
>>Because $sec is not a file name or a file handle. It's a good idea to
>>check if any file operation succeeded:
>>
>>open(TEKST,">test.txt") or die $!;
>>chmod 0600,*TEKST or die $!;
>>binmode(TEKST);
>>print TEKST "hello world";
>>close TEKST;
>
> I still got different result. This time I've got 0644
That's strange. With that code you should only get permissions of 0600
or less (when umask is set to something other than 0).
What are the owners and permissions of text.txt and its containing
directory prior to running the command?
What operating system & perl version are you using?
--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
|