2 use warnings FATAL => 'all';
6 use Data::Perl::Collection::Set;
7 use Scalar::Util qw(weaken);
9 my $idiotbox = App::IdiotBox->new({
10 config => { template_dir => 'share/html' }
15 name => 'London Perl Workshop 2009',
16 }, 'App::IdiotBox::Bucket');
20 $bucket->{videos} = Data::Perl::Collection::Set->new(
23 { %$_, bucket => $bucket, details => '' },
24 'App::IdiotBox::Video'
29 { name => 'The M Word', slug => 'm-word', author => 'davorg' },
30 { name => 'Dreamcasting', slug => 'dream', author => 'mst' },
37 while (defined (my $chunk = $fh->getline)) {
43 my $bucket_result = $idiotbox->show_bucket($bucket);
45 my $html = slurp_html($bucket_result);
49 warn "\n\n------\n\n";
51 my $video_result = $idiotbox->show_video($vid{dream});
53 $html = slurp_html($video_result);