Thread Ausgabe eines (komplexeren) Hashes: %hash (21 answers)
Opened by Duff at 2007-07-18 17:17

bloonix
 2007-07-19 11:52
#78613 #78613
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
Also ich bevorzuge zur Ausgabe gerne auch mal CPAN:Data::TreeDumper.

Hier eine Beispielausgabe von DumpTree().

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
print DumpTree($hash, 'Dein Titel', DISPLAY_ADDRESS => 0);

Dein Titel
`- CpuStats
  |- cpu
  |  |- idle = 100.00
  |  |- iowait = 0.00
  |  |- nice = 0.00
  |  |- system = 0.00
  |  |- total = 0.00
  |  `- user = 0.00
  `- cpu0
     |- idle = 100.00
     |- iowait = 0.00
     |- nice = 0.00
     |- system = 0.00
     |- total = 0.00
     `- user = 0.00
\n\n

<!--EDIT|opi|1184831833-->
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread Ausgabe eines (komplexeren) Hashes: %hash