The problem here $dir =~ s/\///g;
is that the two characters you are dealing with have special meaning. The / is interpreted as a quote delimiter because you are using s///. The strings inside of s/// are interpolated, so the \ is interpreted as an escape character. Try escaping both characters, i.e. use \\ and \/. $dir =~ s/\\/\//g; You can clean this up a bit with different quote delimiters, e.g. $dir =~ s!\\!/!g Tim _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs