in reply to Re^2: Bad File Descriptor Error
in thread Bad File Descriptor Error

Your eval() makes sense if Win32::CopyFile() throws exceptions at run time and you want to deal with that. I don't know if it does. The pure Perl operation
$dest = $$appconfig{"destination"}."\\$filename";
does not belong there. If there was a fatal error in that line, it would be a program error and you'd have to correct the line. It doesn't make sense to catch programming errors in eval().

Anno