1Devel::Dwarn(3) User Contributed Perl Documentation Devel::Dwarn(3)
2
3
4
6 Devel::Dwarn - return Dwarn @return_value
7
9 use Devel::Dwarn;
10
11 return Dwarn some_call(...)
12
13 is equivalent to:
14
15 use Data::Dumper::Concise;
16
17 my @return = some_call(...);
18 warn Dumper(@return);
19 return @return;
20
21 but shorter. If you need to force scalar context on the value,
22
23 use Devel::Dwarn;
24
25 return DwarnS some_call(...)
26
27 is equivalent to:
28
29 use Data::Dumper::Concise;
30
31 my $return = some_call(...);
32 warn Dumper($return);
33 return $return;
34
35 Another trick that is extremely useful when doing method chaining is
36 the following:
37
38 my $foo = Bar->new;
39 $foo->bar->baz->Devel::Dwarn::DwarnS->biff;
40
41 which is the same as:
42
43 my $foo = Bar->new;
44 (DwarnS $foo->bar->baz)->biff;
45
47 This module is really just a shortcut for Data::Dumper::Concise::Sugar,
48 check it out for more complete documentation.
49
50
51
52perl v5.12.0 2010-02-13 Devel::Dwarn(3)