in reply to chmod in perl
Have you checked the return status of the chmod command? For instance,
my $filename = q{deletefiles.txt}; chmod 0777, $filename or die $!; open my $OUTPUT, q{+>}, $filename or die $!;
Hope that helps.
Update: 2011-03-11
Fixed missing semicolon on line 2 of code example causing error referred to in Re^2: chmod in perl.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: chmod in perl
by Anonymous Monk on Mar 11, 2011 at 06:18 UTC | |
by ikegami (Patriarch) on Mar 11, 2011 at 07:27 UTC | |
by atcroft (Abbot) on Mar 11, 2011 at 07:51 UTC | |
by Anonymous Monk on Mar 11, 2011 at 09:19 UTC | |
by ikegami (Patriarch) on Mar 11, 2011 at 18:37 UTC | |
by Anonymous Monk on Dec 19, 2011 at 10:17 UTC |
In Section
Seekers of Perl Wisdom