in reply to Re^3: File name is long to copy
in thread File name is long to copy

The error is "couldn't copy file No such file or directory at C:\sandboxes\Scripts\dummy.pl line 9."

Replies are listed 'Best First'.
Re^5: File name is long to copy
by soonix (Chancellor) on Apr 26, 2020 at 16:12 UTC
    I suggest changing the error message like hippo advised here
    "couldn't copy file '$source' to '$target': $!";
    and perhaps count the backslashes.
Re^5: File name is long to copy
by marto (Cardinal) on Apr 26, 2020 at 13:55 UTC

    If you are convinced the path/filename is correct, can you replace the copy with syscopy to make use of Win32::CopyFile via Win32API? Which version of Perl are you running?

      Perl512 I used syscopy, got this error "Undefined subroutine &main::syscopy called at .."