--- Pdoc/Html/Renderers/PerlModule.pm 2004-08-15 04:47:10.359375000 -0700
+++ pdoc-1.0/Pdoc/Html/Renderers/PerlModule.pm 2002-03-15 09:42:54.000000000 -0800
@@ -792,7 +792,7 @@
print $fpt '
+ ', $sub, ' | ';
# Got associated POD too?
- if (eval{$subObj->get('pod')}) {
+ if ($subObj->get('pod')) {
print $fpt 'Description | ';
$begPod++;
} else {
@@ -831,7 +831,7 @@
'';
# If doc
- if (eval{$sub->get('pod')}) {
+ if ($sub->get('pod')) {
print $fpt 'Description';
$podPos++;
} else {
@@ -903,7 +903,7 @@
# Write POD related to routines in BEGIN statement
foreach my $sub (@{$entry->get('subroutines')}) {
my $subObj = $begins->fetch('PerlSub',$sub);
- my $pod = eval {$subObj->get('pod')};
+ my $pod = $subObj->get('pod');
$begCode++;
next if (! $pod);
@@ -954,7 +954,7 @@
# Write routines doc
foreach my $entry (@sorted) {
my $sub = $subroutines->fetch('PerlSub', $entry);
- my $pod = eval{$sub->get('pod')};
+ my $pod = $sub->get('pod');
$subPos++;
next if (! $pod);
@@ -1053,9 +1053,9 @@
print $fpt '', "\n",
'',
- '',eval{$sub->name()}||'noname', ' | ';
+ '', $sub->name(), '';
- my $pod = eval{$sub->get('pod')};
+ my $pod = $sub->get('pod');
if ($pod) {
print $fpt 'description | ';
$podPos++;
@@ -1077,7 +1077,7 @@
print $fpt ' ', "\n";
# Subroutine content
- print $fpt eval{$sub->converted()}, " \n";
+ print $fpt $sub->converted(), " \n";
$subPos++;
}
|