This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a79c164
)
Minor bugfixes
author
Perl 5 Porters
<perl5-porters@africa.nicoh.com>
Mon, 11 Mar 1996 07:15:32 +0000
(07:15 +0000)
committer
Charles Bailey
<bailey@genetics.upenn.edu>
Mon, 11 Mar 1996 07:15:32 +0000
(07:15 +0000)
lib/Pod/Text.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Pod/Text.pm
b/lib/Pod/Text.pm
index
671a64b
..
ac4f72b
100644
(file)
--- a/
lib/Pod/Text.pm
+++ b/
lib/Pod/Text.pm
@@
-87,7
+87,7
@@
$DEF_INDENT = 4;
$indent = $DEF_INDENT;
$needspace = 0;
-open(IN,
shift) || die "Couldn't open file!\n
";
+open(IN,
$file) || die "Couldn't open $file: $!
";
POD_DIRECTIVE: while (<IN>) {
if ($cutting) {
@@
-213,7
+213,7
@@
sub prepare_for_output {
{
if (length() + 3 < $indent) {
my $paratag = $_;
- $_ = <>;
+ $_ = <
IN
>;
if (/^=/) { # tricked!
local($indent) = $indent[$#index - 1] || $DEF_INDENT;
output($paratag);