in reply to Any issue with copy of file where filename contains + sign?

+ is special to copy. It's used to tell copy to concatenate files.

copy a+b c

Quote the file name.

copy "a+b" c

During this copy files containing + in filename creates extra directory

copy doesn't create directories.

Replies are listed 'Best First'.
Re^2: Any issue with copy of file where filename contains + sign?
by Anonymous Monk on Apr 12, 2010 at 13:14 UTC

    thanks for your reply. Are you saying that it is possible to copy files with + in filename without script creating extra directory in perl?

      Sure thing. File::Copy's copy does not treat "+" specially. And like most copy utilities, it doesn't create directories. (See mkdir and File::Path's mkpath if you need to create directories.)