Bob Showalter wrote:
[EMAIL PROTECTED] wrote:
My requirement is to open file with 666 permissions.
You need to set umask to 0 before creating the file.
But don't do that. It's inadvisable to mess with the umask in a program,
IMO. If the user wants to create files as 666, let him set the umask before
running your program.
Or use chmod() on the file to set whatever permissions you desire.
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>