I think you might have the order of the parameters reversed. perldoc chmod
As for how to open with permission 0666, I can recommend perldoc perlopentut.
In reply to Re: how can i open a new file with permission 0666 ?
by !1
in thread how can i open a new file with permission 0666 ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |