songahji has asked for the wisdom of the Perl Monks concerning the following question:
like
Dos windows pops up a message could not write permission denied on random file.foreach $f (@files) { open IN "$f" or die "$f, $!\n"; { local $/; $str = <IN>; } close IN; $str =~ s/old/new/ig; open OUT ">$f.new" or die "$f.new, $!"; print OUT $str; close OUT; }
But it works well when the list has few files. Weird?
Cheers,
Hanny J
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Permission denied on network drive
by trammell (Priest) on Apr 28, 2005 at 20:54 UTC | |
by songahji (Friar) on Apr 29, 2005 at 00:35 UTC | |
|
Re: Permission denied on network drive
by ikegami (Patriarch) on Apr 28, 2005 at 22:18 UTC | |
by songahji (Friar) on Apr 29, 2005 at 00:41 UTC | |
|
Re: Permission denied on network drive
by gman (Friar) on Apr 29, 2005 at 16:19 UTC | |
by songahji (Friar) on May 03, 2005 at 17:06 UTC |