in reply to Desination file with space in directory name
my $destinationFile = "\\\\myinfoserver\\abc\\the directory\\";Holy backslashes, Batman!
Please take a look at File::Spec. It will require a few extra characters to construct a path name, but it will take care of the directory separators for you so you don't have to escape them manually. It will also do it portably, so if you ever run this on a different OS you won't have to scan through your code to check how the paths were constructed. It's got a great little set of methods for manipulating file and path names, and I've found it to be a good little module to know. It's also part of the core distribution, so there is no extra installation required. :-)
|
|---|