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=01da500f0f9087491a1ede3da4a3d22eb5cc5a70;hp=8211cf186fe6068b83287ebb116794d65643c0ee;hb=7194c025550913190a5c82a91f80a64118949232;hpb=9469b5b08a5f4294df2036931af772deb07def04 diff --git a/lib/Devel/Dwarn.pm b/lib/Devel/Dwarn.pm index 8211cf1..01da500 100644 --- a/lib/Devel/Dwarn.pm +++ b/lib/Devel/Dwarn.pm @@ -72,6 +72,16 @@ is equivalent to: warn '$foo => ' . Dumper(@return); return @return; +If you want to output a reference returned by a method easily, try $Dwarn + + $foo->bar->{baz}->$Dwarn + +is equivalent to: + + my $return = $foo->bar->{baz}; + warn Dumper($return); + return $return; + =head1 TIPS AND TRICKS =head2 global usage