jeffpflueger has asked for the wisdom of the Perl Monks concerning the following question:
Anyone know a simple way to set the permissions as I would like them set when I save a file:mkdir "new_directory", 0777 or die "Can't mkdir the directory: $!";
or is chown the only way after the fact?open MUGSHOTWRITE, "> mugshot.jpg" or die "can't write to mugshot.jpg + $!"; binmode MUGSHOTWRITE; print MUGSHOTWRITE @mugshot;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: permissions, open and chown
by Fletch (Bishop) on Apr 03, 2002 at 21:53 UTC | |
|
Re: permissions, open and chown
by Zaxo (Archbishop) on Apr 03, 2002 at 22:11 UTC | |
|
Re: permissions, open and chown
by RMGir (Prior) on Apr 03, 2002 at 22:44 UTC |