From: Gurusamy Sarathy Date: Sat, 6 Feb 1999 00:14:29 +0000 (+0000) Subject: minor bug in dumping blessed subrefs X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c8984b0bd19897e6e30588055ac0338326f20a34;p=p5sagit%2Fp5-mst-13.2.git minor bug in dumping blessed subrefs p4raw-id: //depot/perl@2816 --- diff --git a/ext/Data/Dumper/Dumper.pm b/ext/Data/Dumper/Dumper.pm index 4369664..b1fd2b7 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 {