function umask() and problem in GD::image-png

2010-03-31 Thread CHAN, KENNETH 1 [AG/7721]
Hi all, I have 2 simple questions (maybe be very trial): 1. I saw some code put umask 022; in the near beginning of perl script. I understand that umask is for changing the file permission in unix/linux. However, if I put umask 002 in the beginning of a perl script, after execution, the file

Re: function umask() and problem in GD::image-png

2010-03-31 Thread Shlomi Fish
Hi Kenneth, On Wednesday 31 Mar 2010 11:34:37 CHAN, KENNETH 1 [AG/7721] wrote: Hi all, I have 2 simple questions (maybe be very trial): 1. I saw some code put umask 022; in the near beginning of perl script. I understand that umask is for changing the file permission in unix/linux.

Re: function umask() and problem in GD::image-png

2010-03-31 Thread John W. Krahn
CHAN, KENNETH 1 [AG/7721] wrote: Hi all, Hello, I have 2 simple questions (maybe be very trial): 1. I saw some code put umask 022; in the near beginning of perl script. I understand that umask is for changing the file permission in unix/linux. No, that is incorrect. umask() by itself

RE: function umask() and problem in GD::image-png

2010-03-31 Thread CHAN, KENNETH 1 [AG/7721]
umask() and problem in GD::image-png Hi Kenneth, On Wednesday 31 Mar 2010 11:34:37 CHAN, KENNETH 1 [AG/7721] wrote: Hi all, I have 2 simple questions (maybe be very trial): 1. I saw some code put umask 022; in the near beginning of perl script. I understand that umask is for changing the file

Re: function umask() and problem in GD::image-png

2010-03-31 Thread Shlomi Fish
() and problem in GD::image-png Hi Kenneth, On Wednesday 31 Mar 2010 11:34:37 CHAN, KENNETH 1 [AG/7721] wrote: Hi all, I have 2 simple questions (maybe be very trial): 1. I saw some code put umask 022; in the near beginning of perl script. I understand that umask is for changing the file