3 use Data::Dumper::Concise::Sugar;
6 Data::Dumper::Concise::Sugar->export_to_level(1, @_);
11 Devel::Dwarn - return Dwarn @return_value
17 return Dwarn some_call(...)
21 use Data::Dumper::Concise;
23 my @return = some_call(...);
27 but shorter. If you need to force scalar context on the value,
31 return DwarnS some_call(...)
35 use Data::Dumper::Concise;
37 my $return = some_call(...);
41 Sometimes you'll want to C<Dwarn> out part of a result, instead of the entire
42 thing; for that we have C<Dwarn_only>:
44 # Dwarn the TO_JSON of all the objects in the list
45 my @results = Dwarn_only { map $_->TO_JSON, @_ } some_call(...);
49 # only Dwarn the first item
50 my $data = Dwarn_only { $_->[0] } [ some_call(...) ];
52 Another trick that is extremely useful when doing method chaining is the
56 $foo->bar->baz->Devel::Dwarn::DwarnS->biff;
61 (DwarnS $foo->bar->baz)->biff;
65 This module is really just a shortcut for L<Data::Dumper::Concise::Sugar>, check
66 it out for more complete documentation.