Thanks davorg, I managed to resolve the issue, the error i was getting was
Cannot mkdir D:/Temp/ExpImpTest2/Declan test/here/Logs: No such file o
+r directory at C:\Documents and Settings\dheerey\Desktop\Development\
+Perl\PSGUtility\test2.pl line 38, <DATA> line 164
In the end i moved from mkdir to mkpath and removed the double quotes from my path name. The code now looks (and works) like:
use File::Path ;
my $dir = 'D:\Temp\ExpImpTest2\Declan test2\here\Logs' ;
$dir =~ s/\\/\//g ;
mkpath ($dir) || die "Cannot create $dir: $!" ;
Thanks again
20061109 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips