File: test.pl

package info (click to toggle)
libboulder-perl 1.30-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze
  • size: 404 kB
  • ctags: 306
  • sloc: perl: 4,286; makefile: 41
file content (34 lines) | stat: -rwxr-xr-x 712 bytes parent folder | download | duplicates (6)
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
30
31
32
33
34
#!/usr/bin/perl

#use lib '.','..';

use Stone;

my $stone = Stone->new(name=>'fred',
                       age=>30,
		       address=>{
				 Mail=>{
					street=>'19 Gravel Path',
					town=>'Bedrock',
					ZIP=>'12345'
				       },
				 Electronic=>{
					      fax=>'111,1111',
					      email=>'foo@bar.com'
					     }
				},
		       phone=>{
			       day=>[[qw/xxxx-xxxx yyy-yyyy/],
				     [qw/111-1111 333-3333/]
				     ],
			       eve=>'222-2222'
			      },
		       friends=>[qw/amy agnes wendy joe/],
		       preferences=>{
				     candy=>[qw/sweet chocolate caramel/],
				     sports=>[qw/basketball baseball/],
				     dining=>[qw/ethnic/]
				    }
		      );
print $stone->asTable;