File: scalar_and_origine.pl

package info (click to toggle)
libdata-treedumper-perl 0.41-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 532 kB
  • sloc: perl: 7,098; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 445 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

use warnings ;
use strict ;
use Data::TreeDumper ;

my $s =
	{
	1 => 1,
	2 => 2,
	10 => 10,
	a => 'a',
	b => 'b', 
	aa => 'aa',
	c => 'c',
	reference => [],
	} ;

$s->{link} = $s->{reference} ;

$Data::TreeDumper::Displaycallerlocation++ ;

print DumpTree($s, 'test', USE_ASCII => 0) ;
PrintTree($s, 'test', USE_ASCII => 0) ;

PrintTree(27, 'test:') ;
print DumpTree(27, 'test:') ;

PrintTree(undef, 'test:') ;
print DumpTree(undef, 'test:') ;