1Data::Printer::Profile:U:sDeurmpCeorn(t3r)ibuted Perl DoDcautmae:n:tPartiinotner::Profile::Dumper(3)
2
3
4
6 Data::Printer::Profile::Dumper - use DDP like Data::Dumper
7
9 While loading Data::Printer:
10
11 use DDP profile => 'Dumper';
12
13 While asking for a print:
14
15 p $var, profile => 'Dumper';
16
17 or in your ".dataprinter" file:
18
19 profile = Dumper
20
22 This profile tries to simulate Data::Dumper's output as closely as
23 possible, using Data::Printer, even skipping types unsupported by
24 Data::Dumper like lvalues and formats.
25
26 It's not guaranteed to be 100% accurate, but hopefully it's close
27 enough :)
28
29 Notable Diferences from Data::Dumper
30 It's important to notice that this profile tries to emulate
31 Data::Dumper's output, NOT its behaviour. As such, some things are
32 still happening in a much DDP-ish way.
33
34 * no $VAR2, ... * return value * prototypes * still called 'p' (say
35 alias = 'Dumper' if you want) * arg is always a reference, so on the
36 top level, references to scalars will be rendered as scalars.
37 References to references and inner references will be rendered
38 properly.
39
41 Data::Printer Data::Dumper
42
43
44
45perl v5.36.0 2023-01-20 Data::Printer::Profile::Dumper(3)