# Set the umask to 0's so if we have to create the file, we do it w/0666 mask. 323 # NOTE: The default umask for users is 0022, so creating a file will mask it with 0666 &* 0022 = 0644 324 umask 0000; 325 sysopen( FH, $log_file_name, O_WRONLY | O_CREAT | O_APPEND, 0666 ) 326 or die "\n\tcan't open $log_file_name....$!\n";