[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trailing \ in regex



On March 30, 2003 at 12:15, "Evan Dodds" wrote:

> Trailing \ in regex m/^.*\/ at C:\Perl\site\lib/mhexternal.pl line 243, 
> <GEN0> line 33.

Bug confirmed.  The bug ID is 3020:
<http://savannah.nongnu.org/bugs/?func=detailbug&bug_id=3020&group_id=1968>
A fix has been commited into CVS.

The following patch fixes the problem

Index: mhexternal.pl
===================================================================
RCS file: /cvsroot/mhonarc/mhonarc/MHonArc/lib/mhexternal.pl,v
retrieving revision 2.14
diff -u -p -r2.14 mhexternal.pl
--- mhexternal.pl	4 Feb 2003 23:31:19 -0000	2.14
+++ mhexternal.pl	31 Mar 2003 17:31:53 -0000
@@ -240,7 +240,7 @@ sub filter {
 		$namelabel = $html_name;
 	    } else {
 		$namelabel = $filename;
-		$namelabel =~ s/^.*$mhonarc::DIRSEP//o;
+		$namelabel =~ s/^.*$mhonarc::DIRSEPREX//o;
 		mhonarc::htmlize(\$namelabel);
 	    }
 	}

---------------------------------------------------------------------
To sign-off this list, send email to majordomo@mhonarc.org with the
message text UNSUBSCRIBE MHONARC-USERS


[Index of Archives]     [Bugtraq]     [Yosemite News]     [Mhonarc Home]