I am trying to do the following substitution
$s1 = "c:\\root\\sub1\\sub2\\myfile.dat"; $s2 = "c:\\root\\sub1\\"; $s2 =~ s/$s2//gi; The result I want is "sub2\\myfile.dat". In other words, I want to locate ANY portion of the path in the source string and sub it with something else, such as another path specification, NULL, etc. My script dies because regex does not like the backslash character? I could convert them to UNIX style forward slashes but was wondering if there was any other way. Thanks for your help. _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
