1
2# $storage is defined
3
4# normally, for this sort of thing I'd use YAML
5{
6my ($members, $syd, $bob, $gilmour, @junk);
7
8my @bands =
9    (
10     CD::Band->new
11     ({ name => "The English Beat",
12      popularity => "one hit wonder",
13      cds => Set::Object->new
14      (
15       CD->new({  title => "Beat This: The Best of the English Beat",
16		publishdate => iso("2001-09-11"), # (!)
17		songs => [ map { CD::Song->new({ name => $_}) }
18"Mirror In The Bathroom",
19"Best Friend",
20"Hands Off She's Mine",
21"Too Nice To Talk To",
22"Doors Of Your Heart",
23"I Confess",
24"Twist And Crawl",
25"Rankin Full Stop",
26"Drowning",
27"Save It For Later",
28"Sole Salvation",
29"Click Click",
30"Tears Of A Clown",
31"Can't Get Used To Losing You",
32"Stand Down Margaret",
33			 ]
34	      }),
35       CD->new({ title => "Special Meat Service",
36		publishdate => iso("1999-10-26"),
37		songs => [ map { CD::Song->new({name => $_}) }
38			   "I Confess",
39			   "Jeannette",
40			   "Sorry",
41			   "Sole Salvation",
42			   "Spar Wid Me",
43			   "Rotating Heads",
44			   "Save It For Later",
45			   "She's Going",
46			   "Pato and Roger A Go Talk",
47			   "Sugar and Stress",
48			   "End of the Party",
49			 ],
50	      })
51      ),
52      members => Set::Object->new
53      ( map { CD::Person->new({ name => $_ }) }
54	"David Steele",
55	"Saxa",
56	"Everett Morton",
57	"Wesley Magoogan",
58	"Andy Cox",
59	"Ranking Roger",
60	"Dave Wakeling",
61      ),
62     }),
63     CD::Band->new
64     ({ name => "The Pink Floyd",
65       popularity => "fledgling",
66       creationdate => iso("1964"),
67       enddate => iso("1968"),
68       cds => Set::Object->new
69       (
70	CD->new({ title => "The Piper At the Gates of Dawn",
71		 publishdate => iso("1967"),
72		 songs => [ map { CD::Song->new({name => $_}) }
73"Astronomy Domine",
74"Lucifer Sam",
75"Matilda Mother",
76"Flaming",
77"Pow R. Toc H.",
78"Take Up Thy Stethoscope and Walk",
79"Interstellar Overdrive",
80"The Gnome",
81"Chapter 24",
82"Scarecrow",
83"Bike",
84			 ]
85	      }),
86       ),
87      members => $members=Set::Object->new
88      ( ($syd, $bob, @junk) = map { CD::Person->new({ name => $_ }) }
89	"Syd Barrett",
90	"Bob Klose",
91	"Richard Wright",
92	"Roger Waters",
93	"Nick Mason (drums)",
94      ),
95     }),
96
97     CD::Band->new
98     ({ name => "The Pink Floyd",
99       popularity => "increasing",
100       creationdate => iso("1968"),
101       enddate => iso("1969"),
102       cds => Set::Object->new
103       (
104	CD->new({ title => "A Saucerful of Secrets",
105		 publishdate => iso("1968"),
106		 songs => [ map { CD::Song->new({name => $_}) }
107"Let There Be More Light",
108"Remember A Day",
109"Set The Controls For The Heart Of The Sun",
110"Corporal Clegg",
111"A Saucerful of Secrets",
112"See-Saw",
113"Jugband Blues",
114			  ]
115	       }),
116       ),
117      members => Set::Object->new
118       ( $members->members,
119	 ($gilmour = CD::Person->new({ name => "David Gilmour" }))
120       ),
121     }),
122
123     CD::Band->new
124     ({ name => "Pink Floyd",
125       popularity => "great",
126       creationdate => iso("1969"),
127       cds => Set::Object->new
128       (
129	CD->new({ title => "Ummagumma (disc 1 - live disc)",
130		 publishdate => iso("1969-10-25"),
131		 songs => [ map { CD::Song->new({name => $_}) }
132"Astronomy Domine",
133"Careful With That Axe, Eugene",
134"Set The Controls For The Heart of The Sun",
135"A Saucerful of Secrets",
136			  ]
137	       }),
138	CD->new({ title => "Ummagumma (disc 2 - studio disc)",
139		 publishdate => iso("1969-10-25"),
140		 songs => [ map { CD::Song->new({name => $_}) }
141"Sysyphus Part 1",
142"Sysyphus Part 2",
143"Sysyphus Part 3",
144"Sysyphus Part 4",
145"Grantchester Meadows",
146"Several Species Of Small Furry Animals Gathered In A Cave And Grooving With A Pict",
147"The Narrow Way Part 1",
148"The Narrow Way Part 2",
149"The Narrow Way Part 3",
150"The Grand Vizier's Garden Party Part 1\u2014Entrance",
151"The Grand Vizier's Garden Party Part 2\u2014Entertainment",
152"The Grand Vizier's Garden Party Part 3\u2014Exit",
153			  ]
154	       }),
155       ),
156       members => Set::Object->new
157       ( ( ($members - Set::Object->new($syd, $bob))->members,
158	  $gilmour,
159	 ),
160       )
161      }),
162
163     CD::Band->new
164     ({ name => "Damnwells",
165       popularity => "fringe",
166       cds => Set::Object->new
167       (
168	CD->new({ title => "Bastards of the Beat",
169		 publishdate => iso("2004-04-06"),
170		 songs => [ map { CD::Song->new({name => $_}) }
171"A******s",
172"What You Get",
173"Kiss Catastrophe",
174"I'll Be Around",
175"Newborn History",
176"I Will Keep The Bad Things From You",
177"Sleepsinging",
178"The Sound",
179"The Lost Complaint",
180"Electrric Harmony",
181"New Delhi",
182"Star / Fool",
183			  ],
184	       }),
185       ),
186	members => Set::Object->new
187	( map { CD::Person->new({ name => $_ }) }
188	  "Alex Dezen",
189	  "David Chernis",
190	  "Ted Hudson",
191	  "Steven Terry"
192	)
193      })
194    );
195
196$storage->insert(@bands);
197
198}
199
2001;
201