.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Data::TreeDumper::OO 3pm" .TH Data::TreeDumper::OO 3pm "2016-11-30" "perl v5.24.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Data::TreeDumper::OO \- Object oriented interface to Data::TreeDumper .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 2 \& use Data::TreeDumper ; \& use Data::TreeDumper::OO ; \& \& my $sub = sub {} ; \& \& my $s = \& { \& A => \& { \& a => \& { \& } \& , bbbbbb => $sub \& , c123 => $sub \& , d => \e$sub \& } \& \& , C => \& { \& b => \& { \& a => \& { \& a => \& { \& } \& \& , b => sub \& { \& } \& , c => 42 \& } \& \& } \& } \& , ARRAY => [qw(elment_1 element_2 element_3)] \& } ; \& \& \& my $dumper = new Data::TreeDumper::OO() ; \& $dumper\->UseAnsi(1) ; \& $dumper\->SetMaxDepth(2) ; \& $dumper\->SetFilter(\e&Data::TreeDumper::HashKeysSorter) ; \& \& print $dumper\->Dump($s, "Using OO interface") ; \& print $dumper\->DumpMany \& ( \& [$s, "title", MAX_DEPTH => 1] \& , [$s2, "other_title", DISPLAY_ADDRESS => 0] \& , USE_ASCII => 1 \& , MAX_DEPTH => 5 \& ) ; .Ve .SH "Output" .IX Header "Output" .Vb 10 \& title: \& |\- A [H1] \& | |\- a [H2] \& | |\- bbbbbb = CODE(0x8139fa0) [C3] \& | |\- c123 [C4 \-> C3] \& | \`\- d [R5] \& | \`\- REF(0x8139fb8) [R5 \-> C3] \& |\- ARRAY [A6] \& | |\- 0 [S7] = elment_1 \& | |\- 1 [S8] = element_2 \& | \`\- 2 [S9] = element_3 \& \`\- C [H10] \& \`\- b [H11] \& \`\- a [H12] \& |\- a [H13] \& |\- b = CODE(0x81ab130) [C14] \& \`\- c [S15] = 42 .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" Object oriented interface to Data::TreeDumper. .SS "Object oriented Methods" .IX Subsection "Object oriented Methods" .Vb 2 \& # constructor \& my $dumper = new Data::TreeDumper::OO(MAX_DEPTH => 1) ; \& \& $dumper\->UseAnsi(1) ; \& $dumper\->UseAscii(1) ; \& $dumper\->SetMaxDepth(2) ; \& $dumper\->SetIndentation(\*(Aq \*(Aq) ; \& $dumper\->SetVirtualWidth(80) ; \& $dumper\->SetFilter(\e&Data::TreeDumper::HashKeysSorter) ; \& $dumper\->SetLevelFilters({1 => \e&Filter_1, 5 => \e&Filter_5) ; \& $dumper\->SetStartLevel(0) ; \& $dumper\->QuoteHashKeys(1) ; \& $dumper\->QuoteValues(0) ; \& $dumper\->DisplayNoElements(1) ; \& $dumper\->DisplayRootAddress(1) ; \& $dumper\->DisplayAddress(0) ; \& $dumper\->DisplayObjectType(0) ; \& $dumper\->Displayinheritance(0) ; \& $dumper\->DisplayAutoload(0) ; \& $dumper\->DisplayTie(0) ; \& $dumper\->DisplayPerlAddress(1) ; \& $dumper\->DisplayPerlSize(0) ; \& $dumper\->NumberLevels(2) ; \& $dumper\->ColorLevels(\e&ColorLevelSub) ; \& $dumper\->SetGlyphs([\*(Aq. \*(Aq, \*(Aq. \*(Aq, \*(Aq. \*(Aq, \*(Aq. \*(Aq]) ; \& $dumper\->NoOutput(1) ; \& $dumper\->SetRenderer(\*(AqDHTML\*(Aq) ; \& \& $dumper\->Dump($s, "Using OO interface", %OVERRIDES) ; \& $dumper\->DumpMany \& ( \& [$s, "dump1", %OVERRIDES] \& , [$s, "dump2", %OVERRIDES] \& , %OVERRIDES \& ) ; .Ve .SH "DEPENDENCY" .IX Header "DEPENDENCY" Data::TreeDumper. .SH "EXPORT" .IX Header "EXPORT" None. .SH "SEE ALSO" .IX Header "SEE ALSO" Data::TreeDumper \- the base class for this module. .PP Data::Dumper \- convert perl data values or variables to equivalent Perl syntax. .PP Data::Dumper::GUI \- a graphical interface on top of Data::Dumper. .PP Data::Dumper::Sorted \- like Data::Dumper but sorts hash keys into alphabetic order. .PP Data::Dumper::HTML \- dump data into \s-1HTML\s0 with syntax highlighting. .PP Data::Dumper::Simple and Data::Dumper::Names work like Data::Dumper but include the original variable names in the output. .PP Data::Dumper::Perltidy \- combines Data::Dumper and Perl::Tidy to stringify data in a pretty-printed format. .SH "REPOSITORY" .IX Header "REPOSITORY" .SH "AUTHOR" .IX Header "AUTHOR" Khemir Nadim ibn Hamouda. .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" Copyright (c) 2003\-2014 Nadim Ibn Hamouda el Khemir. All rights reserved. .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. .PP If you find any value in this module, mail me! All hints, tips, flames and wishes are welcome at .