quote the pod filename used in the regexp to avoid \ issues on Win32
authorTony Cook <tony@develop-help.com>
Fri, 21 Jan 2011 08:03:36 +0000 (19:03 +1100)
committerTony Cook <tony@develop-help.com>
Fri, 21 Jan 2011 08:33:51 +0000 (19:33 +1100)
pod/buildtoc

index c85db57..cc105a0 100644 (file)
@@ -434,7 +434,7 @@ sub podset {
            $_ = <$fh>;
            # Remove svn keyword expansions from the Perl FAQ
            s/ \(\$Revision: \d+ \$\)//g;
-           if ( /^\s*$pod\b/ ) {
+           if ( /^\s*\Q$pod\E\b/ ) {
                s/$pod\.pm/$pod/;       # '.pm' in NAME !?
                output $_;
            } else {