I changed open to opendir, it was a mistake indeed... But it did not solve the problem.
Of course not. Neither open nor opendir makes any sense around copy.
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...
Show your current code.
Alexander
In reply to Re^3: Perl - Copy files to a newly created folder
by afoken
in thread Perl - Copy files to a newly created folder
by Benichouniev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |