summaryrefslogtreecommitdiff
path: root/ext/Data
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-02-06 00:14:29 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-02-06 00:14:29 +0000
commitc8984b0bd19897e6e30588055ac0338326f20a34 (patch)
tree76a5d2962ac34f2579863b1debe3efeede09fdea /ext/Data
parent7575fa06ca7baf15c82a0561c39ca2f5cbfe534c (diff)
downloadperl-c8984b0bd19897e6e30588055ac0338326f20a34.tar.gz
minor bug in dumping blessed subrefs
p4raw-id: //depot/perl@2816
Diffstat (limited to 'ext/Data')
-rw-r--r--ext/Data/Dumper/Dumper.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/Data/Dumper/Dumper.pm b/ext/Data/Dumper/Dumper.pm
index 4369664a5a..b1fd2b790a 100644
--- a/ext/Data/Dumper/Dumper.pm
+++ b/ext/Data/Dumper/Dumper.pm
@@ -9,7 +9,7 @@
package Data::Dumper;
-$VERSION = $VERSION = '2.10';
+$VERSION = $VERSION = '2.101';
#$| = 1;
@@ -326,8 +326,7 @@ sub _dump {
$out .= ($name =~ /^\%/) ? ')' : '}';
}
elsif ($realtype eq 'CODE') {
- $out .= '"DUMMY"';
- $out = 'sub { ' . $out . ' }';
+ $out .= 'sub { "DUMMY" }';
carp "Encountered CODE ref, using dummy placeholder" if $s->{purity};
}
else {