The error message is:
Unsuccessful stat on filename containing newline at C:/Perl/lib/File/Copy.pm lin
e 91, <> line 2.
Cannot copy file: No such file or directory.
But I'm sure that the directory exists, the strings that I'm puting into $dir1 are from input, but if I'll write the same thing but without scalars, for example:
my $dir1="c:\\perl\\begperl\\qa";
error message is:
Cannot copy file: Bad file descriptor.
Thank you very much for your response!!!!!!!!