ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
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=&quot;c:\\mub\\mubwork&quot;;</font>
<br> 
<font face="Comic Sans MS" size=2> $inter=&quot;c:\\mub\\mubwork\\test\\tets1&quot;;</font> <
br> 
<font face="Comic Sans MS" size=2> $dest=&quot;c:\\mubariz\\dpgdata&quot;;</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&gt;perl -w findreplace.pl</font> <br>
<font face="Comic Sans MS" size=2> Unrecognized escape \m passed through in regex; marked by 
&lt;-- HERE in m/c:\m &lt;--</font>  <br>
<font face="Comic Sans MS" size=2> &nbsp;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 
&lt;-- HERE in m/c:\mub\m</font>  <br>
<font face="Comic Sans MS" size=2> &nbsp;&lt;-- 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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved