Skip to content

Commit bdcaaab

Browse files
authored
Merge pull request #179 from djerius/dd_warn
ignore warnings issued by Data::Dumper
2 parents d678dca + 4698ab2 commit bdcaaab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Type/Tiny.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ sub _dd {
494494
local $Data::Dumper::Maxdepth = 2;
495495
my $str;
496496
eval {
497+
local $SIG{__WARN__} = sub { };
497498
$str = Data::Dumper::Dumper( $value );
498499
$str = substr( $str, 0, $N - 12 ) . '...' . substr( $str, -1, 1 )
499500
if length( $str ) >= $N;

0 commit comments

Comments
 (0)