We don't bite newbies here... much | |
PerlMonks |
Re: Can't copy fileby toolic (Bishop) |
on Mar 30, 2015 at 20:17 UTC ( [id://1121895]=note: print w/replies, xml ) | Need Help?? |
Check if copy succeeded (File::Copy):
Tip #1 from the Basic debugging checklist: warnings. You try to close FH, but you opened $outfh. Do not close the file in the foreach loop. It works as expected for me when I close it outside the loop.
In Section
Seekers of Perl Wisdom
|
|