in reply to Re: Perl - Copy files to a newly created folder
in thread Perl - Copy files to a newly created folder
Alexander,
thank you for you answer!
I changed open to opendir, it was a mistake indeed... But it did not solve the problem. I also added 'use warnings' and 'or die' everywhere but I don't get any error messages when I run the program.
I see 'x files have been copied', where x is the number of files I have, which means the loop runs once per file as expected. However, sometimes it copies, sometimes it does not. And I don't know why...
Ben
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl - Copy files to a newly created folder
by afoken (Chancellor) on Apr 18, 2015 at 16:55 UTC | |
by Benichouniev (Novice) on Apr 18, 2015 at 18:45 UTC | |
by afoken (Chancellor) on Apr 18, 2015 at 23:54 UTC |