File: insert_extra_data.pl

package info (click to toggle)
libtangram-perl 2.10-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,184 kB
  • ctags: 702
  • sloc: perl: 9,665; makefile: 9
file content (200 lines) | stat: -rw-r--r-- 4,683 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200

# $storage is defined

# normally, for this sort of thing I'd use YAML
{
my ($members, $syd, $bob, $gilmour, @junk);

my @bands =
    (
     CD::Band->new
     ({ name => "The English Beat",
      popularity => "one hit wonder",
      cds => Set::Object->new
      (
       CD->new({  title => "Beat This: The Best of the English Beat",
		publishdate => iso("2001-09-11"), # (!)
		songs => [ map { CD::Song->new({ name => $_}) }
"Mirror In The Bathroom",
"Best Friend",
"Hands Off She's Mine",
"Too Nice To Talk To",
"Doors Of Your Heart",
"I Confess",
"Twist And Crawl",
"Rankin Full Stop",
"Drowning",
"Save It For Later",
"Sole Salvation",
"Click Click",
"Tears Of A Clown",
"Can't Get Used To Losing You",
"Stand Down Margaret",
			 ]
	      }),
       CD->new({ title => "Special Meat Service",
		publishdate => iso("1999-10-26"),
		songs => [ map { CD::Song->new({name => $_}) }
			   "I Confess",
			   "Jeannette",
			   "Sorry",
			   "Sole Salvation",
			   "Spar Wid Me",
			   "Rotating Heads",
			   "Save It For Later",
			   "She's Going",
			   "Pato and Roger A Go Talk",
			   "Sugar and Stress",
			   "End of the Party",
			 ],
	      })
      ),
      members => Set::Object->new
      ( map { CD::Person->new({ name => $_ }) }
	"David Steele",
	"Saxa",
	"Everett Morton",
	"Wesley Magoogan",
	"Andy Cox",
	"Ranking Roger",
	"Dave Wakeling",
      ),
     }),
     CD::Band->new
     ({ name => "The Pink Floyd",
       popularity => "fledgling",
       creationdate => iso("1964"),
       enddate => iso("1968"),
       cds => Set::Object->new
       (
	CD->new({ title => "The Piper At the Gates of Dawn",
		 publishdate => iso("1967"),
		 songs => [ map { CD::Song->new({name => $_}) }
"Astronomy Domine",
"Lucifer Sam",
"Matilda Mother",
"Flaming",
"Pow R. Toc H.",
"Take Up Thy Stethoscope and Walk",
"Interstellar Overdrive",
"The Gnome",
"Chapter 24",
"Scarecrow",
"Bike",
			 ]
	      }),
       ),
      members => $members=Set::Object->new
      ( ($syd, $bob, @junk) = map { CD::Person->new({ name => $_ }) }
	"Syd Barrett",
	"Bob Klose",
	"Richard Wright",
	"Roger Waters",
	"Nick Mason (drums)",
      ),
     }),

     CD::Band->new
     ({ name => "The Pink Floyd",
       popularity => "increasing",
       creationdate => iso("1968"),
       enddate => iso("1969"),
       cds => Set::Object->new
       (
	CD->new({ title => "A Saucerful of Secrets",
		 publishdate => iso("1968"),
		 songs => [ map { CD::Song->new({name => $_}) }
"Let There Be More Light",
"Remember A Day",
"Set The Controls For The Heart Of The Sun",
"Corporal Clegg",
"A Saucerful of Secrets",
"See-Saw",
"Jugband Blues",
			  ]
	       }),
       ),
      members => Set::Object->new
       ( $members->members,
	 ($gilmour = CD::Person->new({ name => "David Gilmour" }))
       ),
     }),

     CD::Band->new
     ({ name => "Pink Floyd",
       popularity => "great",
       creationdate => iso("1969"),
       cds => Set::Object->new
       (
	CD->new({ title => "Ummagumma (disc 1 - live disc)",
		 publishdate => iso("1969-10-25"),
		 songs => [ map { CD::Song->new({name => $_}) }
"Astronomy Domine",
"Careful With That Axe, Eugene",
"Set The Controls For The Heart of The Sun",
"A Saucerful of Secrets",
			  ]
	       }),
	CD->new({ title => "Ummagumma (disc 2 - studio disc)",
		 publishdate => iso("1969-10-25"),
		 songs => [ map { CD::Song->new({name => $_}) }
"Sysyphus Part 1",
"Sysyphus Part 2",
"Sysyphus Part 3",
"Sysyphus Part 4",
"Grantchester Meadows",
"Several Species Of Small Furry Animals Gathered In A Cave And Grooving With A Pict",
"The Narrow Way Part 1",
"The Narrow Way Part 2",
"The Narrow Way Part 3",
"The Grand Vizier's Garden Party Part 1\u2014Entrance",
"The Grand Vizier's Garden Party Part 2\u2014Entertainment",
"The Grand Vizier's Garden Party Part 3\u2014Exit",
			  ]
	       }),
       ),
       members => Set::Object->new
       ( ( ($members - Set::Object->new($syd, $bob))->members,
	  $gilmour,
	 ),
       )
      }),

     CD::Band->new
     ({ name => "Damnwells",
       popularity => "fringe",
       cds => Set::Object->new
       (
	CD->new({ title => "Bastards of the Beat",
		 publishdate => iso("2004-04-06"),
		 songs => [ map { CD::Song->new({name => $_}) }
"A******s",
"What You Get",
"Kiss Catastrophe",
"I'll Be Around",
"Newborn History",
"I Will Keep The Bad Things From You",
"Sleepsinging",
"The Sound",
"The Lost Complaint",
"Electrric Harmony",
"New Delhi",
"Star / Fool",
			  ],
	       }),
       ),
	members => Set::Object->new
	( map { CD::Person->new({ name => $_ }) }
	  "Alex Dezen",
	  "David Chernis",
	  "Ted Hudson",
	  "Steven Terry"
	)
      })
    );

$storage->insert(@bands);

}

1;