Re: Help on Find and Replace
by Hershel Safer other posts by this author
Jan 31 2003 10:13AM messages near this date
view in the new Beta List Site
[PMX:#] Convert strange date
|
Win32::lanman?
<html>
Use single quotes in setting the variables in the first three
lines.<br> <br>
At 01:51 31-01-03 -0800, Ahmed, Mubariz wrote:<br>
<blockquote type=cite class=cite cite> <font face="Comic Sans MS" size=2>I
have problem with find and replace. Below is the script</font> <br><br>
<font face="Comic Sans MS" size=2> $src="c:\\mub\\mubwork";</font>
<br>
<font face="Comic Sans MS" size=2> $inter="c:\\mub\\mubwork\\test\\tets1";</font> <
br>
<font face="Comic Sans MS" size=2> $dest="c:\\mubariz\\dpgdata";</font> <br>
<font face="Comic Sans MS" size=2> $inter=~s/$src/$dest/; # Result should be c:\mubariz\dpgda
ta\test\tets1</font> <br>
<font face="Comic Sans MS" size=2> print $inter;</font> <br><br>
<font face="Comic Sans MS" size=2> Below is the error.</font> <br><br>
<font face="Comic Sans MS" size=2> C:\mubariz\script>perl -w findreplace.pl</font> <br>
<font face="Comic Sans MS" size=2> Unrecognized escape \m passed through in regex; marked by
<-- HERE in m/c:\m <--</font> <br>
<font face="Comic Sans MS" size=2> HERE ub\mubwork/ at findreplace.pl line 4.</font> <b
r>
<font face="Comic Sans MS" size=2> Unrecognized escape \m passed through in regex; marked by
<-- HERE in m/c:\mub\m</font> <br>
<font face="Comic Sans MS" size=2> <-- HERE ubwork/ at findreplace.pl line 4.</font>
<br>
<font face="Comic Sans MS" size=2> c:\mub\mubwork\test\tets1</font> </blockquote></html>
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|