vrempire has asked for the wisdom of the Perl Monks concerning the following question:
it returns :permission denied pleaseeeee...opendir (DIR,$dir) or die "Can't open folder $dir: $!\n"; @files = readdir DIR or die "Couldn't read from $dir: $!\n"; foreach $file (@files) { $/=undef; open MYFILE, "$file" or die "Cannot open :$!\n"; print MYFILE "$file \n"; close FILE; $/="\n"; } closedir DIR;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem with print content of file
by ColtsFoot (Chaplain) on Aug 07, 2000 at 10:57 UTC | |
by tilly (Archbishop) on Aug 07, 2000 at 11:09 UTC | |
by chromatic (Archbishop) on Aug 09, 2000 at 07:55 UTC | |
|
(jjhorner)problem with print content of file
by jjhorner (Hermit) on Aug 07, 2000 at 19:51 UTC | |
by Ovid (Cardinal) on Aug 07, 2000 at 21:40 UTC |