C:/Documents and Settings/UserX/Desktop/WORK/data/var - 21/dat #### @files = glob( $path . "/*.xml ); print join ( "\n", @files ); This returns: C:/Documents and Settings/UserX/Desktop/WORK/data/var #### $path =~ s/\//\\\\/g; $path =~ s/\ /\\\ /g;