3 use Data::Dumper::Concise::Sugar;
6 Data::Dumper::Concise::Sugar->export_to_level(1, @_);
11 Devel::Dwarn - return Dwarn @return_value
14 use Data::Dumper::Concise::Sugar;
16 return Dwarn some_call(...)
20 use Data::Dumper::Concise;
23 my @return = some_call(...);
27 my $return = some_call(...);
32 but shorter. If you need to force scalar context on the value,
34 use Data::Dumper::Concise::Sugar;
36 return DwarnS some_call(...)
40 use Data::Dumper::Concise;
42 my $return = some_call(...);
46 If you need to force list context on the value,
48 use Data::Dumper::Concise::Sugar;
50 return DwarnL some_call(...)
54 use Data::Dumper::Concise;
56 my @return = some_call(...);
60 =head1 TIPS AND TRICKS
64 Instead of always just doing:
72 perl -MDevel::Dwarn foo.pl
74 (and then in the perl code:)
78 That way, if you leave them in and run without the C<< use Devel::Dwarn >>
79 the program will fail to compile and you are less likely to check it in by
80 accident. Furthmore it allows that much less friction to add debug messages.
82 =head2 method chaining
84 One trick which is useful when doing method chaining is the following:
87 $foo->bar->baz->Devel::Dwarn::DwarnS->biff;
92 (DwarnS $foo->bar->baz)->biff;
96 This module is really just a shortcut for L<Data::Dumper::Concise::Sugar>, check
97 it out for more complete documentation.