summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChip Salzenberg <chip@perl.com>1997-03-05 09:55:21 +1200
committerChip Salzenberg <chip@atlantic.net>1997-03-07 04:01:12 +1200
commit7f9f50e6359fe350cbe70297d5277db15f34a222 (patch)
treeb41570ad3d291fb2d924e010521d8f60a2a14d7c
parentd8b8f155f8db246fedcbc36ea9ae6374f7033c78 (diff)
downloadperl-7f9f50e6359fe350cbe70297d5277db15f34a222.tar.gz
Quote pathname before using as pattern
-rw-r--r--pod/pod2html.PL15
1 files changed, 7 insertions, 8 deletions
diff --git a/pod/pod2html.PL b/pod/pod2html.PL
index 76a3479855..8dafea5d09 100644
--- a/pod/pod2html.PL
+++ b/pod/pod2html.PL
@@ -78,17 +78,16 @@ $type = '<A HREF="';
################################################################################
# location of all podfiles unless on command line
-# $installprivlib="HD:usr:local:lib:perl5"; # uncomment and reset for Mac
-# $installprivlib="C:\usr\local\lib\perl5"; # uncomment and reset for DOS (I hope)
-
-# $installprivlib="/usr/local/lib/perl5"; # Unix
+# $installprivlib='HD:usr:local:lib:perl5'; # uncomment for Mac
+# $installprivlib='C:\usr\local\lib\perl5'; # uncomment for DOS (I hope)
+# $installprivlib='/usr/local/lib/perl5'; # Unix
$installprivlib="./"; # Standard perl pod directory for intallation
################################################################################
# Where to write out the html files
-# $installhtmldir="HD:usr:local:lib:perl5:html"; # uncomment and reset for Mac
-# $installhtmldir="C:\usr\local\lib\perl5\html"; # uncomment and reset for DOS (I hope)
-$installhtmldir = "./";
+# $installhtmldir='HD:usr:local:lib:perl5:html'; # uncomment for Mac
+# $installhtmldir='C:\usr\local\lib\perl5\html'; # uncomment for DOS (I hope)
+$installhtmldir = './';
# test for validness
@@ -154,7 +153,7 @@ loop1:
foreach $podfh ( @Pods ) {
$didindex = 0;
$refname = $podfh;
- $refname =~ s/$installprivlib${sep}?//;
+ $refname =~ s/\Q$installprivlib${sep}\E?//;
$refname =~ s/${sep}/::/g;
$refname =~ s/\.p(m|od)$//;
$refname =~ s/^pod:://;