summaryrefslogtreecommitdiff
path: root/lib/Pod
diff options
context:
space:
mode:
authorJeffrey Friedl <jfriedl@regex.info>2002-03-31 17:32:34 -0800
committerJarkko Hietaniemi <jhi@iki.fi>2002-04-01 20:33:06 +0000
commit24e08cbad4d455c0ea0d5e7994d8469a9fc6790b (patch)
treebace44307ea3f6a826cf5a5da34d9a1f3491a8ee /lib/Pod
parentcf8feb78124b90756575c16fb087f9e129ee3a6d (diff)
downloadperl-24e08cbad4d455c0ea0d5e7994d8469a9fc6790b.tar.gz
getting rid of a few superfluous $&/$`
Message-Id: <200204010932.g319WY886939@ventrue.corp.yahoo.com> (with more-backward-compat than just using @- and @+, also by Jeffrey) (The version number of Text::Balanced intentionally not increased since Damian will make a new release after 5.8) p4raw-id: //depot/perl@15668
Diffstat (limited to 'lib/Pod')
-rw-r--r--lib/Pod/Html.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Pod/Html.pm b/lib/Pod/Html.pm
index 1ae81c9e60..179b80bb25 100644
--- a/lib/Pod/Html.pm
+++ b/lib/Pod/Html.pm
@@ -1255,9 +1255,9 @@ sub process_pre {
$rest = $$text;
# insert spaces in place of tabs
- $rest =~ s#.*#
- my $line = $&;
- 1 while $line =~ s/\t+/' ' x (length($&) * 8 - length($`) % 8)/e;
+ $rest =~ s#(.+)#
+ my $line = $1;
+ 1 while $line =~ s/(\t+)/' ' x ((length($1) * 8) - $-[0] % 8)/e;
$line;
#eg;