X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FData-Dumper-Concise.git;a=blobdiff_plain;f=lib%2FDevel%2FDwarn.pm;fp=lib%2FDevel%2FDwarn.pm;h=68963715a05f77622189e966805d3401280da760;hp=01da500f0f9087491a1ede3da4a3d22eb5cc5a70;hb=2566c738d28b5c6fd48615bd8a7a297d3e92cffd;hpb=92264889a0f278aa61cdee48aef484496fb6e5ce diff --git a/lib/Devel/Dwarn.pm b/lib/Devel/Dwarn.pm index 01da500..6896371 100644 --- a/lib/Devel/Dwarn.pm +++ b/lib/Devel/Dwarn.pm @@ -82,6 +82,12 @@ is equivalent to: warn Dumper($return); return $return; +If you want to immediately die after outputting the data structure, every +Dwarn subroutine has a paired Ddie version, so just replace the warn with die. +For example: + + DdieL 'foo', { bar => 'baz' }; + =head1 TIPS AND TRICKS =head2 global usage